faqts : Computers : Programming : Languages : JavaScript : Event handling

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

106 of 359 people (30%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How to hide the URL being displayed on the status bar ,location window & title bar?

Jan 10th, 2008 10:19
dman, Seth Riedel, sudhir shivaram,


Use this code below to mask the link location and status bar. The only
way to hide what is in the location bar is to have a pop up window with
no location bar.

<a href="#" onMouseOver='javascript:window.status="link 1"; return true'
onMouseOut='javascript:window.status=" "; return true'
onClick="javascript:window.location='http://sturly.com'">link 1</a> | <a
href="#" onClick="javascript:window.location='http://lsyg.com'"
onMouseOver='javascript:window.status="link 2"; return true'
onMouseOut='javascript:window.status=" "; return true' >link 2</a>

Though it should also be noted that most of the modern browsers tend to 
ignore the modifications made to the status bar.