Jump to content

focus if


freelance84

Recommended Posts

Ok, just starting out into the world of js after getting a very firm grasp of php mysql and html... and i have a question:

 

onload="document.add.forename_1.focus()"

 

How do i put the above into an if statement, ie, if the form "add" exists on html page then focus on field "forename_1"??

Link to comment
https://forums.phpfreaks.com/topic/211929-focus-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.