English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im just trying to get two things to happen at once, i want the google map to load, and the cursor to automatically go to the form. Should be simple but I dont know how to code this
Right now I have this
" onunload="GUnload();">

but I want to add this

onload="document.forms[0].ip.focus()"

thanks!

2006-08-16 08:47:31 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

the easiest way is to create one function called in the onload attribute -
function init(){
//load google map
//focus cursor
}

...

you can also call them both in the onload attribute and seperate the command with a semi-colon.

2006-08-16 09:07:45 · answer #1 · answered by John J 6 · 0 0

http://www.google.com/search?num=20&hl=en&newwindow=1&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=%3Cbody+onload+actions+at+once%3F&spell=1

http://www.google.com/search?num=20&hl=en&lr=&newwindow=1&q=%3Cbody+on+load+actions+at+once%3F

http://www.google.com/search?num=20&hl=en&newwindow=1&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=body+onload+actions+at+once%3F&spell=1

2006-08-16 15:56:12 · answer #2 · answered by malung786 4 · 0 1

fedest.com, questions and answers