포커스 질문 정보
포커스 질문
본문
자동으로 폼에 포커스가 가 있게 할려고 그누와, 제로의 팁텍에 있는 내용을 검색해서 적용해 봤는데 잘 안되더군요.
게시판 검색폼에 커서가 항상 있게 하고 싶습니다.
<body onLoad="document.fhead.mb_id.focus()">
검색창의 name=stext 이므로
<body onLoad="document.stext.focus()">
<body onLoad="document.all.stext.focus()">
<body onLoad="document.form.stext.focus()">
어떻게 쓰든, null값이 없다는 에러메시지가 나오거든요.
어떻게 써야 하는지 알려주세요.
게시판 검색폼에 커서가 항상 있게 하고 싶습니다.
<body onLoad="document.fhead.mb_id.focus()">
검색창의 name=stext 이므로
<body onLoad="document.stext.focus()">
<body onLoad="document.all.stext.focus()">
<body onLoad="document.form.stext.focus()">
어떻게 쓰든, null값이 없다는 에러메시지가 나오거든요.
어떻게 써야 하는지 알려주세요.
댓글 전체