|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
execScript doesn't work on IE6?! Or is my javascript a load of ...
Hi All,
I just upgraded my IE browser to version 6. I regret that now! Seems like execScript doesn't work anymore. This is what I tried to do: In a frameset I have two frames. The first frame adds a function to the second frame. This function is called by the second frame's onmousemove event. This is done by using execScript, like this (first frame): <html> <head> <script language="JavaScript"> function go() { var frameObj = top.frames[1]; strJS = "document.onmouseover = test;" +" function test() { status += 'x'; }"; frameObj.execScript(strJS); } </script> </head> <body> <input type="button" onclick="go();" value="Add function"> </body> </html> This code even works on IE 4! Does anyone know why Microsoft have blocked execScript and how do I get around it? |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > execScript doesn't work on IE6?! Or is my javascript a load of ... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|