
May 18th, 2007, 10:44 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 1
Time spent in forums: 10 m 41 sec
Reputation Power: 0
|
|
|
Need Help Debugging Script/Error in Script - Opener window history problem
I am trying to open a pdf in a new window from a menu item on the index.htm page which opens plan.htm then launches a new window with a pdf. Due to limitations I must do it this way. However I want the opener plan.htm to then tell the browser to go back one in the history. I have tried everything I can think of, this is the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript">
function PopUp(url) {
TheNewWin =window.open(url,"launch","toolbar=0,location=0,status=0,menubar=0,scrollbars =0,resizable=0,width=992,height=600");
<!--TheNewWin.focus(); -->
}
</script>
</head>
<body bgcolor="#0B2345" onLoad="PopUp('(URL address blocked: See forum rules))" >
<script language="javascript">
<!-- begin
window.opener.back();
// end -->
</script>
</body>
</html>
|