|
Home
Languages
VB6
JavaScript
Perl
HTML
SQL
Java
DOS
Forums
Web Site
Software
gbCodeLib
Personal
Webcam
Biography
Contact Me
|
GBIC >>
Source Code >>
JavaScript >> Snippet
|
Prevent user from changing value of element
Use the onfocus event
in
the element tag to prevent shift focus away from the element
<
input type
=
'text'
name
=
'myinput'
onfocus
=
"document.nextelement.focus()"
>
|
|
|
|