SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Pop-Up Window Question.

    I have a question about Javascript Pop-Up Windows I have yet to find an answer to. I have a link that opens 2 Pop-Ups. One is a Menubar ( Pop1 ) and the other is the normal pages (Pop2) . I want the Pop1 to close IF Pop2 is closed without have to code the normal pages. Is this possible to do?

  2. #2
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone at all know?

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,688
    Mentioned
    100 Post(s)
    Tagged
    4 Thread(s)
    Because pop2 didn't open pop1 it shouldn't be allowed to close pop1.
    However, if you tell pop2 to open pop1 then you should be able to use the onbeforeunload event from pop2 to close pop1
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like wierd logic to me....I will alsk my fellow web designers...and will post you the comments, if I get the answer.....

  5. #5
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well both windows are opened by* 1 link and are popped up in Javascript if that helps any
    Last edited by Darkfirebird; Sep 10, 2008 at 09:17. Reason: Misspelling T.T


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •