Stewart531
Programmer
I'm having a problem calling an onUnload function from the <body> portion of my framestring. It causes the code in the <frameset> to not work. I know the <frameset> part is fine, because it works when I remove the <body> code. Here is my code:
NFW = window.open("","mytarget1",windowprops)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"<body onunload=alert(\"Test!\">" +
"</body>" +
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+URLpop+"' scrolling=auto>"+
"<frame name='bottom' src='SEL' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
Can I not use both <body> and <frameset> at once?
Thanks,
Stewart
NFW = window.open("","mytarget1",windowprops)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"<body onunload=alert(\"Test!\">" +
"</body>" +
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+URLpop+"' scrolling=auto>"+
"<frame name='bottom' src='SEL' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
Can I not use both <body> and <frameset> at once?
Thanks,
Stewart