FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

ie bug in pop up window script

 


horseatingweeds
Only in ie and I getting a " 'htmlWindow' is null or not an object" error.

The script is strait forward, not fancy.

Code:
var htmlWindow;
var x;
var y;
function newWindowPriceDes(htmlfile) {
htmlWindow = window.open(htmlfile, 'newWin', 'width=300,height=350,scrollbars=yes,resizable=yes')
}

htmlWindow.focus()


I have it firing on page load:

Code:
<body onload='newWindowPriceDes("Exdes/basicA.htm")'>


Pop up window is at: http://www.webtech.efficientpresence.com/Exdes/basicA.htm

Here is the page:

http://www.webtech.efficientpresence.com/exampleHome.htm

It works fine in other browsers I have tested...

Any ideas?
pckid2
Works fine for me, I have IE7.
MrBlueSky
My IE blocks the popup.
mariohs
It opened perfectly on IE6. Maybe you are using popup blockers, aren't you?
horseatingweeds
It must be some quire thing with my ie de-bugger. I have three different popup blockers, I think, somehow, but I can’t seem to shut them off. I have shut off three….. so I must have for. I think every addition to ie has a popup blocker.

Perhaps I should dump it and load the new ie7.
rohan2kool
i don't really think pop-up bolckers wud cause an invalid object error.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.