Click to See Complete Forum and Search --> : Forced Field Highlighting


cr3at0r
01-08-2004, 06:59 PM
I am curious if anyone has discovered a way to
force MSIE 4.x + to highlight the contents of a
form field for over-writing from a <TAB> key
focus change.

Thanks!

Pittimann
01-09-2004, 05:07 AM
Hi!

Maybe like this?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form name="myForm">
<input type="text" name="text1" value="overwrite1" onfocus="this.select()">
<input type="text" name="text2" value="overwrite2" onfocus="this.select()">
<input type="text" name="text3" value="overwrite3" onfocus="this.select()">
</body>
</html>

Cheers - Pit

fredmv
01-09-2004, 10:02 AM
I don't know about IE4.x, but Mozilla highlights field contents when you tab into it by default...