SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Mar 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to hide Address bar for Safari browser using Java Script?

    I am working on Safari browser and for one of my popup window, I need to subpress the address bar. I included the properties as "menubar=yes,toolbar=yes,location=no", this worked well for IE and Firefox, but for Safari, it doesn't.

    Please suggest if there is any way to fix this problem.

    -Rajitha.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works fine for me using Safari 3.1 on Mac OS X.

  3. #3
    SitePoint Member
    Join Date
    Mar 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not working for Safari Version 3.1 on Windows XP

    I am using Safari Version 3.1 on Windows XP. Please help.

    -Rajitha

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doesn't the location bar also show up in Firefox 3? But dimmed?

  5. #5
    SitePoint Member
    Join Date
    Mar 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Location bar doesn't showup in Firefox.

    Location bar doesn't showup in Firefox.

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It does in Firefox 3. They show it to make spoofing harder.

  7. #7
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,870
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Modern browsers don't allow sites to turn off the browser address bar. It is one of the anti-phishing security measures they implemented. Browsers that allow the address bar to be turned off allow scammers to present their site as if it were the browser owners bank and collect their bank account and credit card details so as to clean them out. For all uses except trying to scam your visitors out of their life savings it doesn't matter that the address bar remains visible and so you have no reason to worry that most browsers now don't allow you to turn it off.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •