Menu
I’m just trying to create a simple popup window using JS, but the console keeps telling me that “window” is not defined. I thought window was a standard reference to the current window though…
[code=php]<html>
<head>
<title>This is a test</title>
<script language=”JavaScript”>
function popup(URL) {
window.open(URL, ‘This is only a test.’, ‘scrollbars=1,statusbar=1,resizable=1,width=90,height=90’);
}
</script>
</head>
<body onLoad=”javascript:popup(‘file://C:whatever.htm’)”>
</body>
</html>
Any ideas as to what’s going on?