473,700 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="lightg oldenrodyellow" onload="initind ex();">

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

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

<script language="JavaS cript">
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("ht tp://www.mokenamarti alarts.com/tkdupdate.html" ,
"TKD Updated", "width=200,heig ht=250,status=n o");
</script>

Any help would be greatly appreciated!
Lee
Jul 23 '05 #1
3 1448
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="JavaS cript">
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("ht tp://www.mokenamarti alarts.com/tkdupdate.html" ,
"TKD Updated", "width=200,heig ht=250,status=n o");
</script>

Any help would be greatly appreciated!
Lee

Take the space out of the window name:
var popup = window.open(
"http://www.mokenamarti alarts.com/tkdupdate.html" ,
"TKDUpdated ", "width=200,heig ht=250,status=n o");

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.javas cript 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
2492
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, when it first opens, it is positioned at the bottom of the modal window's content, so one has to scroll to see the beginning of the content. It happens to be positioning the window so the bottom of the submit button is at the bottom of the popup....
4
5784
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
12429
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, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server Side Form. I know I can use the context with to Response.redirect or Server.transfer to return a
24
3253
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 a new window and build it with DOM rather than having to provide a src. Even a blank.html as src takes time to fetch. How can I create a popup and dynamically add DOM content without any html at all?
2
1586
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 + "\"" + ",\"GamesStats\",\"toolbar=no,location=no,directories=no,menubar=no,resizabl e=yes,scrollbars=yes,width=640,height=300\");mywindow.focus();"; dr is a DataRow item that is added to a DataTable that becomes the DataSource of the...
1
5747
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 the end of the code behind code for the link button click event, I use JavaScript to popup another browser window (using window.open). This all works fine. It's basically a confirmation popup.
3
2765
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 the two buttons. Once the user clicks on the linkbutton a javascript dialog box popsup that says "Is the Lessee buying this vehicle?" and with two buttons "Yes" and "No". If user clicks "yes" it should go to DealerQuestions.aspx" and if "No" it...
4
1920
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 to trigger the function: <A
4
4273
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 PopUp Blocker is not being accepted.
0
8731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9219
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4408
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3097
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2032
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.