navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Default Placement of Cursor on Page

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Default Placement of Cursor on Page
Page: [1]
 
Razorbx13

 

Posts: 15
From: None
Status: offline

 
Default Placement of Cursor on Page - 10/15/2001 20:18:00   
I have a query search page that when the user goes to it, I want the cursor position to be at the data entry field. How can I set this in the page?

Thanks in advance!

ginnie

 

Posts: 527
From: St. Louis MO USA
Status: offline

 
RE: Default Placement of Cursor on Page - 10/15/2001 13:12:00   
Hi there,

A little javascript in the body tag should do the trick.

Assuming your form is named something like "form1", and the name of the text field that you want to set the focus to is named something like "search", then use:

<body onLoad="document.form1.search.focus()">

Even if the "search" field wasn't the first input field on the page (for instance it could be in the middle of a form), it would still set the focus to that field.

ginnie

------------------
Global Presence Web Design


(in reply to Razorbx13)
hawleyr

 

Posts: 19
Joined: 8/24/2007
Status: offline

 
RE: Default Placement of Cursor on Page - 12/4/2007 15:38:03   
quote:

<body onLoad="document.form1.search.focus()">


This worked great for me! Thanks!

(in reply to ginnie)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Default Placement of Cursor on Page
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts