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?

7 of 18 people (39%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Need an event to restrict user typing text in url in address box of a browser

Jan 18th, 2002 08:46
Juergen Thelen, ghandikota sudhakar,


The browsers location/address bar is no JavaScript object, i.e. there 
even are no JavaScript methods you could use.
Both bars are controlled by the browser itself, internally. Maybe it's 
possible using appropriate active-x controls (IE), or signed scripts 
(NN), but that's no javascript question anymore.. :o)
Try searching for wpm (or similiar).. long ago, but afair this was an 
active-x control doin' stuff kinda this...
Hint: How about opening a new window using window.open(), and closing 
the old one? Then you're in control... :o)
Hth, Juergen