[thelist] JS error access denied
Matt McKeon
matt at camadro.com
Tue Sep 12 12:33:38 CDT 2006
Chris Price wrote:
> I have a problem with a page which opens a window using javascript.
>
> In IE 6.0 I get the following error when the window opens:
>
> Line: 23
> Char: 2
> Error: Access is denied
> Code: 0
> URL: http://serekundapoodles.com/new/bridget.html
>
> On the clients computer the window pops up but just says that its
> downloading the content but doesn't complete the download, just freezes
> the browser.
>
> It happens on an AOL browser and another on BT.
>
> The javascript is as follows:
>
> function majorWindow(pagename,dir) {
> var thisWin
> thisWin =
> window.open(opener,'popup','toolbar=no,location=no,scrollbars=yes,resiza
> <snip>
> }
>
> Can anyone throw any light on this?
>
> Kind Regards
>
Off the top of my head, you should leave the first parameter in
window.open blank. So it would look like
window.open('','popup','toolbar=no,location=no,scrollbars=yes,resizable=yes,width=840,height=620');
Try that. It will pop a blank window, which you are then writing into.
-matt
More information about the thelist
mailing list