...

View Full Version : window.open debug error



Saj
06-10-2003, 11:11 PM
Hi.

Can any of you spot whats wrong with this script?



<script type="text/javascript">
function load_popup {
window.open("images/demo.swf", "Demo", "width=832,height=556");
self.close();
}
</script>
</head>
<body onload="javascript:load_popup()">


MS Script debugger picks on the onload="javascript:load_popup()" and something else, though I have no idea what since it didn't highlight anything.

Help would be appreciated.

Saj

Garadon
06-10-2003, 11:13 PM
I would normaly just write

<body onload="load_popup();">

Saj
06-10-2003, 11:16 PM
And it still didn't work...I tried that before as well.

Its still picking on something, even after I take out the self.close(), so I have no idea.

BTW, thanks for the very quick response.

Garadon
06-10-2003, 11:41 PM
I must have been asleep lol anyways this works


<html>
<head>
<script type="text/javascript">
function load_popup() {
window.open("images/demo.swf", "Demo", "width=832,height=556");
self.close();
}
</script>
</head>
<body onload="load_popup();">
</body>
</html>

Saj
06-10-2003, 11:43 PM
Just to prove my stupidity.....I forgot the () after load_popup :o

I can't believe I did that though:rolleyes:

Thanks for your help...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum