| Have you noticed that when you load certain pages with forms on them that the insertion point will automatically appear in the first form field, allowing you to quickly begin typing? In other cases, though, you have to click in the field first. The difference is a tiny bit of JavaScript, which you can add to your FrontPage forms. You must first give your form a name in the Form Properties dialog box, and you must know the name of the targeted field. (Check the Text Box Properties dialog box if you're not sure.) Now, switch to HTML mode and add the following code just after the tag at the end of the form: Substitute the actual form and field names, of course. Now, when you load the page in the browser, the insertion point will appear in the targeted field, ready for input. |
Giving focus to a FrontPage form field |
Express News India | Freelance ecommerce web development India