no need to give solution, i have already found it in this forum, please check:
http://bytes.com/topic/javascript/an...ild-method-ie6
solution is very simple, change
var objdiv = document.create Element("DIV");
to
var objdiv = parent.document .createElement( "DIV");...
User Profile
Collapse
-
Problem about creating DIV in parent window from child window
I have a probelm about creating DIV in parent window from child window. following code works find in IE8, but it does not work in IE7 and 6
aaa.html
bbb.htmlCode:<html> <head> <title>aaa</title> </head> <body> <iframe src=bbb.html height=0 width=0></iframe> </body> </html>
...Code:<script type="text/javascript">
No activity results to display
Show More
Leave a comment: