473,395 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Popup window not popping up

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
Jul 23 '05 #1
3 1417
Lee David wrote:
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");

Jul 23 '05 #2
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
Jul 23 '05 #3
Lee David wrote:
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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jamie Jackson | last post by:
I'm using showModalDialog() to popup a window with some long text, followed by a couple of form elements. The content of the popup scrolls, since the content is longer to than the window. However,...
4
by: gallery | last post by:
My client is asking that once a viewer visits his website, the onLoad popup window not show up again. What's the best way to do this? Thanks, Marje
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
24
by: jonathon | last post by:
Hi all, I have a web app with a popup window for entering data. I don't want to access the web every time this window is opened, as most of the app is AJAX. But I can't figure out how to open...
2
by: David W. Simmonds | last post by:
I have a popup window appear when a user clicks on a hyperlink in a datalist. I do it like this: dr = "javascript:mywindow=window.open(" + "\"GameStats.aspx?Date="+dr + "&Away="+dr + "&Home="+dr...
1
by: dapkniht | last post by:
Hello, Here's my situation... I have an ASP.NET 2.0 (C#) page with a link button. When a user clicks the button I need it to execute the code behind code for the link button on click event. At...
3
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
4
by: Ed Jay | last post by:
I'm using the following simple js to open a popup window. var popwin; function launchwin(winurl,winname,winfeatures) { popwin = window.open(winurl,winname,winfeatures); } Using the following...
4
by: vickeybird | last post by:
I want to know if it is possible to detect if Pop up Blocker is enabled without trying to open a Pop Up windows. I'm trying to create a web analytics script and visible Pop up in case of disabled...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.