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
     
    successfirst, Dec 1, 2006 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    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
  5. tajb88

    tajb88 Member

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Great info! Thanks for help ! From now will start use :)
     
    tajb88, May 15, 2019 IP
  6. ilya sulakov

    ilya sulakov Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    1
    #6
    solid nab tbh
     
    ilya sulakov, Jun 15, 2023 IP