Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create a location entry dialogue pop-up for Safari Web Browsers
This is an offshoot from the Safari JavaScript Bookmarklets hint. If you like to hide the Address Bar in Safari, you can create a bookmarklet that will allow you to enter a web address into dialogue box (shown on two lines; enter as one without a space between the quote and the comma):
  javascript:location.href='http://'+(q=prompt('Open%20Location:'
  ,%20self.location))
Here's a bonus tip - if from the above code you remove the 'http://'+, you can enter any protocol and hostname that you want into the dialogue box. For instance, you could then use any of http:// ssh:// https:// ftp:// telnet:// itms:// sherlock:// afp:// nfs:// smb:// mailto:// aim://, and cool stuff will happen. Of course, you can use all of those protocols directly in the Address Bar, if you use the Address Bar.
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[6,231 views]  

Create a location entry dialogue pop-up for Safari | 2 comments | Create New Account
Click here to return to the 'Create a location entry dialogue pop-up for Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CMD-L
Authored by: cybergoober on Jul 17, '03 11:41:40AM

I think this may have even been submitted as a hint here, but:

If you hide the Address Bar in Safari, Command + L will toggle it. Upon entering your URL and hitting Return, it promptly toggles back to hidden.



[ Reply to This | # ]
...
Authored by: TigerKR on Jul 17, '03 07:06:47PM
"decursive" at the Ars Technica Macintoshian Achaia came up with this better code: javascript:q=prompt('Open%20Location:',self.location);if(q)%7Bif(q.substring(0,7)==%22http://%22)%7Blocation.href=q;%7Delse%7Blocation.href='http://'+q;%7D%7D

[ Reply to This | # ]