hi all,
i am having a login page which includes username, password,submit,clear. ater cuming to this page i am geting focus on textbox but wen i press clear button it is not focusing again on the username text box. so please help me.
Thank u.
niths
-1
Posting Whiz in Training
Recommended Answers
Jump to PostSample:
<html> <head> <title>Add site</title> </head> <body onload="setFocus()"> <form action="add_site.php" method="post" name="add_site"> <input type=text name=add_url size=50 value="http://"> <input type=submit value=" add "> <input type="reset" value=" reset " name="Reset"> </form> <script language="javascript"> function setFocus() { var field = document.add_site.add_url; field.focus(); field.value = field.value; field.focus(); } </script> </body> </html>
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.