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?

9 of 16 people (56%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Also, how do I get an event when the user types in a url in the location window of the browser and presses enter??

Apr 30th, 2001 04:35
Colin Fraser, anupriya ramraj,


I doubt this can be done. How can a client side script detect what is 
not going on in the document. While JavaScript allows you a certain 
dynamism, this goes to the browser, not the window or the document. You 
can only trap key presses if the browser focus is set to the page, not 
if it is set to the address or location bar.