Current location: Hot Scripts Forums » General Web Coding » JavaScript » Popup in a Popup - Please help!


Popup in a Popup - Please help!

Reply
  #1 (permalink)  
Old 12-13-03, 07:54 AM
Static Static is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Popup in a Popup - Please help!

Thank you for at least clicking on my thread.

The problem I'm currently having is the following:

Code:
<script language="javascript" type="text/javascript">
//<!-- 
function popup()
{ window.open ("boa.html","popup","width=688,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,left=100,top=100") }
-->
</script>
Then, I use:

Code:
<a href="javascript:popup()">Enter</a>
So when someone clicks on Enter on the splash page, a popup will appear and there will be my site.

Ok. On the popup site, there is another button. It uses the code:

Code:
<script language="javascript" type="text/javascript">
//<!-- 
function popup()
{ window.open ("boa_jukebox.html","popup","width=300,height=80,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,left=100,top=100") }
-->
</script>
At the nav, there is a link using:

Code:
<a href="javascript:popup()">Jukebox</a>

Well, when I'm on the popup site, and click Jukebox, another popups DOES NOT come up above the original popup. It just uses the original popup's page to load the Jukebox page. The Jukebox page is supposed to be it's own popup.


How can I fix it so it works?

Thank you.

If I didn't explain clear enough, please tell me.
Reply With Quote
  #2 (permalink)  
Old 12-14-03, 11:32 AM
psyon psyon is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
The second argument to window.open is the windows name. You have both set to "popup". If a window by that name doesnt exist already, then oen is created, otherwise an existing one is used.

Just make sure those second args are different, and it should do the trick.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to hide web address in Java PopUp JAllard15 JavaScript 4 12-24-03 05:05 PM
Pass php session onto a popup? MTsoul PHP 2 11-30-03 12:16 PM
Popup window on the top of other windows Nia ASP 1 11-05-03 11:35 AM
To open a popup with specific dimensions and tools eg no scroll bars Imp JavaScript 2 11-01-03 08:26 PM
pay-per-click / Popup Script Pardal Script Requests 0 07-29-03 01:57 PM


All times are GMT -5. The time now is 11:32 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.