focus
document.getElementById("myTextField").focus();
document.getElementById("myTextField").focus();
window.onload = function() {
document.getElementById("myTextField").focus();
}
網頁開啟時,游標停於myTextField HTML元素。
window.onload = function() {
document.getElementById("myTextField").focus();
}
網頁開啟時,游標停於myTextField HTML元素。