How to set the focus back to the text box after validation.

Question: Dear All ,

I have written one small code in BSP.but i can't able to set the focus back to the calling text box.If anyone knows how to set the focus to the text box after doing some validations in the Javascript ..



Thanks in Advance .

Regards,
Jothi.P .

Answer:
Hi there,

try some coding like this:


<script>
....
document.form1.test.focus();
</script>


where 'test' is the name of the INPUT field and form1 the name of your FORM!

Greets
Copyright ?2007 - 2008 www.jt77.com