1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Opening Page In A New Window

Discussion in 'Web Design' started by redrubies, Nov 3, 2012.

  1. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,425
    Likes Received:
    2,590
    Location:
    USA
    I'm having a bit of a problem constructing pages that open in a new window. What do I put in left margin, width, and height? It's all done in pixels. Nothing looks right. I want a full page to open and not just a portion of the page, but each page is a different size to begin with. So I am assuming that the number won't be the same for every page.
     
  2. IamNRE

    IamNRE Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 18, 2010
    Messages:
    4,780
    Likes Received:
    7,177
    Occupation:
    Generate Leads With FB Ads For Just $1
    Home Page:
    • Thanks Thanks x 1
  3. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,414
    Gender:
    Male
    Location:
    Copperhead Road
    add target="_blank" to the code
     
    • Thanks Thanks x 2
  4. jokel661

    jokel661 Regular Member

    Joined:
    Sep 26, 2009
    Messages:
    437
    Likes Received:
    495
    Occupation:
    Full Time IM & Developer
    Location:
    NYC & Prague
    <a href="yourlink" target="_blank">Anchor text</a>

    [h=2]Attribute Values for <a> tag[/h]
    _blank Opens the linked document in a new window or tab
    _self Opens the linked document in the same frame as it was clicked (this is default)
    _parent Opens the linked document in the parent frame
    _top Opens the linked document in the full body of the window
    framename Opens the linked document in a named frame
     
    • Thanks Thanks x 2
  5. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,425
    Likes Received:
    2,590
    Location:
    USA
  6. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,425
    Likes Received:
    2,590
    Location:
    USA
    I had blank in the code all along, but the pages are opening either too big or too small.
     
  7. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,425
    Likes Received:
    2,590
    Location:
    USA
    No wait, that's not right. In "self" they are too big or too small. In "blank" the whole page is blank. What am I doing wrong?
     
  8. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,425
    Likes Received:
    2,590
    Location:
    USA
    I fixed it! There was a line of code that I didn't delete. Now the "blank" isn't blank any more. lol Thanks given to everyone who responded. Thank you!
     
  9. 99online

    99online Newbie

    Joined:
    Oct 16, 2012
    Messages:
    43
    Likes Received:
    3
    < a href="yourlink" target="_new"> Your Page </a>
    you can control widht, heigh and position of the new webpage with JavaScript
     
  10. NutraBizSolutions

    NutraBizSolutions Newbie

    Joined:
    Aug 15, 2012
    Messages:
    14
    Likes Received:
    0
    good one