1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to Open Link in New Window Without Showing URL Bar

Discussion in 'JavaScript' started by successfirst, Dec 1, 2006.

  1. #1
    Does anyone know the code to open a new window with the URL bar hidden when a link is clicked?

    Thanks
    SEMrush
     
    successfirst, Dec 1, 2006 IP
    SEMrush
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,427
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Try something like this:
    
    <html>
    <body>
      <a href="#" onclick="window.open( 'http://www.google.com', 'name', 'location=no,scrollbars=yes,status=no,toolbar=yes,resizable=yes' )">Google</a>
    </body>
    </html>
    
    Code (markup):
     
    ajsa52, Dec 1, 2006 IP
  3. successfirst

    successfirst Active Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    Thanks a lot! That is what I needed.
     
    successfirst, Dec 1, 2006 IP
  4. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    IE7 shows a disabled address bar now on windows that didnt normally show the address bars. :mad:
     
    lbalance, Dec 2, 2006 IP