Forum Moderators: open

Message Too Old, No Replies

'win' is null or not an object

Error generated within Internet Explorer when loading pop-up pages

         

vlovelace

2:57 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



Whenever I click on any link in Internet Explorer that requires a new window to be generated, it never loads the pop-up page. For most popups I get the following error "'win' is null or not an object". This is really becoming an irritating problem and any help would be greatly appreciated.

StupidScript

8:25 pm on Sep 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If this is one of your scripts, please post it so we can take a look at it. Or does this happen with every website you visit that has a popup link on it?

vlovelace

8:44 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



It happens with every popup page. It would not load page links that loaded in a new window so I unchecked to script debugger in IE and that is the error I was getting.

Note: It may be off-topic for here, but I am sucking up desperate trying to figure this one out.

Rambo Tribble

2:17 am on Sep 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you cut and paste the following code and save it as a .html file, it should automatically produce a blank popup of 400px by 300px when it is loaded into the browser, unless you have some form of popup blocking enabled.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<script type="text/javascript">
var win_x=window.open("","","height=300px,width=400px")
</script>
</body>
</html>