Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fusebox: calling javascript from included file

Status
Not open for further replies.

cofish

Programmer
Oct 4, 2000
1
US
I've got problems:
I'd like to call focus to the first text field of a form. Simple, right? Well, I'm using Fusebox and including the form. The included form has no <body> tag (it's already located on index.cfm) so there's no place for the obvious event handler (document.onLoad). Has anyone tackled this one before? I'd sure appreciate some help.

TIA,
Don McLean [sig][/sig]
 
My JavaScript Unleashed book has:
You can give focus to a window in two ways:
1. Indirectly, by giving focus to an object in the window
example myWindow.document.myForm.myInput.focus();
2. Directly, by giving focus to the window
example myWindow.focus()

Hope this is of some help.

Bill [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top