form tricks

admin

Administrator
Staff member
Hi<br />
<br />
Trying to add some usability to my forms...I'm struggling to make the onLoad and onFocus event handlers have any effect.<br />
<br />
I was led to believe by the HTML Goodies site that this code:<br />
<br />
VALUE="This is text in a text box" SIZE="45" onFocus="this.value=''"><br />
<br />
...would enable example text in a text box to be removed with one click, rather than by highlighting and erasing. But it doesnt seem to.<br />
<br />
Also, this code:<br />
<br />
onLoad="self.focus();document.FORM_NAME.ELEMENT_NAME.focus()" <br />
<br />
...should make the cursor start flashing in the first text entry box when the page loads, but it doesnt.<br />
<br />
Any ideas what I'm doing wrong?<!--content-->Can we please see the exact code you're using or possibly have a link to the page so we could see it in action?<!--content-->please see attached txt file "vale4x4business" for examples.<br />
<br />
thanks<!--content-->
 
Back
Top