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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied 1

Status
Not open for further replies.

slim2

Programmer
Oct 18, 2001
94
0
0
Can anyone help on this?? This simple window open from the main window causes an "access is denied" error on the open line. I beleive this used to work and now I cannot figure out why it does not?

It is tested using I.E. 6.0. on an XP machine.

Thanks
Les

<html>
<head>
<title>Access Denioed</title>

-->
</style>
<script language=&quot;JavaScript&quot;>
<!-- hide me

var helpwindow;

function help()
{
helpwindow=window.open
&quot;lnhelp.html&quot;,&quot;Help&quot;,&quot;width=750, toolbar=no, menubar=no, scrollbars=yes&quot;);
}

// end the hiding comment -->
</script>
</head>

<body>

<form name=&quot;total_form&quot;>
<a href=&quot;#&quot; onClick=&quot;help()&quot;><img src=&quot;lnquestion.gif&quot; align=&quot;center&quot; alt=&quot;Help&quot; border=&quot;0&quot; width=30 height=40></a>Help</form>

</body>
</html>
 
I know it sounds very simple, but make sure &quot;lnhelp.html&quot; exists in the same directory as the page...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
slim,

You had all sorts of errors in your code above... Extra characters, missing characters, etc.

If you copy and paste this code exactly as-is, do you still get the error:

Code:
<html>
<head>
<script language=&quot;JavaScript&quot;>
<!--
	var helpwindow;  
	function help()
	{
		helpwindow = window.open(&quot;lnhelp.html&quot;,&quot;Help&quot;,&quot;width=750,toolbar=no,menubar=no,scrollbars=yes&quot;);
	}
//--> 
</script>
</head> 

<body>
<form name=&quot;total_form&quot;>
	<a href=&quot;#&quot; onClick=&quot;help()&quot;><img src=&quot;lnquestion.gif&quot;  align=&quot;center&quot; alt=&quot;Help&quot; border=&quot;0&quot; width=30 height=40></a>Help
</form>

</body>
</html>

Hope this helps!

Dan
 
Praechers son,

God bless ya!

Yes it did work. I will comoare to yours and see where I messed up. I have been looking at this for days.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top