SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: new window

  1. #1
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    new window

    I'm using this code

    <a href="" onClick="myRef = window.open('photos.html','photos',
    'left=20,top=20,width=490,height=500,toolbar=0,scrollbars=1,resizable=0');
    myRef.focus()"><strong>PHOTOGRAPHS</strong></a>
    to open a new smaller window to view something in while the main page is still open so the user doesn't have to go to a new page and then back again. You can see it here http://www.incura.net/media.html. The problem is when you click on the "photographs" link, it moves the page that's supposed to be static behind the smaller window, back to the index page. I've tried what I think would be a logical solution, but now I'm at a loss, can anyone help?

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <a href="photos.html" onClick="myRef = window.open('photos.html','photos',
    'left=20,top=20,width=490,height=500,toolbar=0,scrollbars=1,resizable=0');
    myRef.focus(); return false;"><strong>PHOTOGRAPHS</strong></a>

  3. #3
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the help...works perfectly...


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
  •