i read this post and am trying to do the same but its not working. My javascript file "myscript.js" on the server is
/*var win;
function openWindow(){
win = */
window.open("http://www.yahoo.com","","menubar=no,toolbar=no,width=400,height=600");
/*}
function closeWindow(){
win.close();
}*/
The server is a real server and not a local host server.
The full path to the file is http://eddyfreeman.woelmuis.nl/myscript.js and am trying to run the following page from my local computer so that the the javascript file will open a new window from the following page ::
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/Javascript">
<!--
document.write("<script type='text/javascript' src='" + document.location.protocol + "://www.eddyfreeman.woelmuis.nl/myscript.js'></script>");
//-->
</script>
</head>
<body>
<h1>PAGE TESTING</h1>
</body>
</html>
but its not working. I only see the text TESTING PAGE instead of a window opening before the text.
What am i doing wrong?