Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript Error in open window

Status
Not open for further replies.

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 = &quot;JavaScript&quot;>
<!--//
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=&quot;javascript:popup()&quot;>
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
 
What browser version are you using ... this works fine for me on IE5.5

Greg.
 
I'm using IE5.0. Will any method that can get rid of this problem of ther version below 5.5?

Michelle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top