Jump to content

php set focus


mona

Recommended Posts

  • 3 weeks later...

Oh, but you do can write the javascript with php, but you don''t want to use javascript at all.If you change your mind, you can do this:

<?php echo "<body onload='MyForm.Focused.focus()'>\n"; ?> ....<form name="MyForm" .... ><input name="Focused" .... ><input .... ></form></body>
(the green is JavaScript)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...