Guest_imported
New member
- Jan 1, 1970
- 0
I've written a simple testing program to load a pdf file in an open window. The
program is as follows:
<html>
<HEAD>
<title>Testing</title>
<script language = "JavaScript">
<!--//
function popup(){
var testwin = window.open
('Sum_em.pdf','SummaryofExplanatoryMemorandum','width=550,height=450,menubar=no,to
olbar=no,directories=no,location=no,scrollbars=yes,status=yes,resizable=yes');
testwin.focus();
}
//-->
</script>
</head>
<body onload="javascript
opup()">
Testing
</body>
</html>
The problem is when without close the popup window and reload the page again, JavaScript error occured. How can i get rid of this! Please help!
Michelle
program is as follows:
<html>
<HEAD>
<title>Testing</title>
<script language = "JavaScript">
<!--//
function popup(){
var testwin = window.open
('Sum_em.pdf','SummaryofExplanatoryMemorandum','width=550,height=450,menubar=no,to
olbar=no,directories=no,location=no,scrollbars=yes,status=yes,resizable=yes');
testwin.focus();
}
//-->
</script>
</head>
<body onload="javascript
Testing
</body>
</html>
The problem is when without close the popup window and reload the page again, JavaScript error occured. How can i get rid of this! Please help!
Michelle