Skip to main content
Home Forums Silverlight Programming Programming with JavaScript javascript doesn't work in silverlight
1 replies. Latest Post by mrjvdveen on June 9, 2009.
(0)
TheRekz
Member
4 points
40 Posts
06-08-2009 7:02 PM |
I have the following code and I did put it inside the testpage.aspx file and it doesn't give me an alert when the mouse is moved.. Why??? <script type="text/javascript"> document.onmousemove = manageVideo; function manageVideo() { alert("Hello World"); } </script>
mrjvdveen
Participant
1937 points
366 Posts
06-09-2009 2:41 AM |
It doesn't fire, because an html document does not have a onmousemove event, as you can read here. I also don't think that this is a Silverlight question, so it shouldn't be in the Silverlight forum.