Results 1 to 7 of 7
May 30, 2001, 09:23 #1
- Join Date
- Mar 2001
- the Netherlands
- 0 Post(s)
- 0 Thread(s)
giving focus to a button upon loading page
I would like to know what code to use if I want to put the focus on a button?
I know how to put a focus on a textfield of some kind...
but if I have just a button (onClick=window.close() without a form, how do I, upon loading the page, give this button the main focus...
so, if someone presses the Spacebar or Enterkey the window will be closed immediately.