...

View Full Version : On focus



JAVAEOC
02-14-2004, 01:18 AM
on focus doesnt work why?

<input id="size" type="text" value="16" class="StyleVal" style="width: 1.5em" onfocus="TEXT(this.id)" onblur="UNTEXT(this.id)"></input>

thanks alot

Nightfire
02-14-2004, 01:20 AM
I don't get what it's meant to do?

JAVAEOC
02-14-2004, 01:28 AM
its just ment to execute this function

TEXT(id)
{
document.getElementById(id).style.backgroundcolor="white"
}

thanks

JAVAEOC
02-14-2004, 01:28 AM
and how can i make it select all the text in the area onfocus?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum