Popup window not popping up

L

Lee David

I'm trying to have a popup window of new changes when a person comes to my
web page and something has changed. I can see the "alert" popping up, but
not the page. The page would look better and wouldn't stop the original
page from opening until it was closed. Here is my code:

<body bgcolor="lightgoldenrodyellow" onload="initindex();">

<div id="flyingimage1" style="position:absolute; left:0px; top:150px;
z-index:0;">
<img src="../images/DT0504_32tn.jpg" border="0"></div>

<div id="flyingimage2" style="position:absolute; left:0px; top:450px;
z-index:0;">
<img src="../images/DT0504_33tn.jpg" border="0"></div>

<script language="JavaScript">
alert("AITTC has an updated web page on May 29, 2005 at 10:12 AM\n\nGo to
News to see the changes.");
var popup = window.open("http://www.mokenamartialarts.com/tkdupdate.html",
"TKD Updated", "width=200,height=250,status=no");
</script>

Any help would be greatly appreciated!
Lee
 
R

Random

Lee said:
I'm trying to have a popup window of new changes when a person comes to my
web page and something has changed. I can see the "alert" popping up, but
not the page. The page would look better and wouldn't stop the original
page from opening until it was closed. Here is my code: ....
<script language="JavaScript">
alert("AITTC has an updated web page on May 29, 2005 at 10:12 AM\n\nGo to
News to see the changes.");
var popup = window.open("http://www.mokenamartialarts.com/tkdupdate.html",
"TKD Updated", "width=200,height=250,status=no");
</script>

Any help would be greatly appreciated!
Lee


Take the space out of the window name:
var popup = window.open(
"http://www.mokenamartialarts.com/tkdupdate.html",
"TKDUpdated", "width=200,height=250,status=no");
 
L

Lee David

Thank you, that was it. I would have never guessed that as I was confused
and thought the name parameter was the title of the page which can have
spaces. Duh.

It's working and after a few people test it I'll move it to the "real" page.
It's at www.mokenamartialarts.com/index2.php right now if you want to stop
by. I'll use the same technique in another page I'm building so I get
double duty out of it.

Thanks again,
Lee
 
R

Randy Webb

Lee said:
I'm trying to have a popup window of new changes when a person comes to my
web page and something has changed. I can see the "alert" popping up, but
not the page. The page would look better and wouldn't stop the original
page from opening until it was closed.

In addition to the problem with the space in the window name that has
already been pointed out, I will never see that popup window no matter
what you change in the code unless you make it user initiated due to my
popup blocker not accepting your unsolicited popup window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top