Results 1 to 6 of 6

Thread: pop new window

  1. #1
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation pop new window


    i need to make a pop window for my site but i also want that if i press a link on that pop window, the link goes in the main page and not another window

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <a href="mypage.htm" onclick="window.open('mypop-up.htm')">Popup/Redirect</a>
    Or the equivalent, without the main page re-direct (w/o JavaScript):
    Code:
    <a href="mypop-up.htm" target="_blank">Popup</a>
    - Mike

  3. #3
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    why is this in the flash category? use
    HTML Code:
    getURL('pageURLhere', new
    for flash (i think)

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    You're missing a right bracket there.
    - Mike

  5. #5
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    so i am. Im also missing a ;

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,133
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by chronic View Post
    i need to make a pop window for my site but i also want that if i press a link on that pop window, the link goes in the main page and not another window
    If the main page's window has a name, you can target it. To give a page a name:

    Code:
    <script type="text/javascript">
    window.name='some_name';
    </script>
    To target it from a link:

    Code:
    <a href="whatever.htm" onclick="window.open(this.href,'some_name');return false;">Link Text</a>
    Quote Originally Posted by killerchutney View Post
    why is this in the flash category? use
    HTML Code:
    getURL('pageURLhere', new
    for flash (i think)
    Because it is code that is used to write Active Script, not javascript. Active Script is the language from which Flash is compiled.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •