Welcome to WebmasterWorld Guest from 18.208.159.25

Forum Moderators: open

Message Too Old, No Replies

Error On Page

     
6:12 am on Nov 24, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 24, 2003
posts:7
votes: 0


Sorry I'm a complete newbie when it's comes to javascript.

I have the following script on my page:

<script type="text/javascript">
function targetBlank (url) {
blankWin = window. open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
blankWin.myOpener = window;
}
</script>

It works but everytime I use it I get "Error On Page" in the status bar.

The details show:

Line: 12
Char: 3
Error: Permission denied
Code: 0

4:03 pm on Nov 24, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Welcome to Webmaster World!

Remove this line:
blankWin.myOpener = window;

Also, make sure there's no space between "window." and "open" in your script.

10:19 pm on Nov 24, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 24, 2003
posts:7
votes: 0


Thank you so much! :) I never would have figured it out by myself.