Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-21-2008, 05:18 PM
  #1
efandango
Novice (Level 1)
 
Join Date: Nov 2008
Posts: 5
iTrader: (0)
efandango is an unknown quantity at this point
Open a webpage directly onto a form with flashing cursor

Can someone tell me how I would code for a webpage to open directly into a form where the cursor just sits there flashing awaiting input form the user.

just like this google page does:

http://maps.google.co.uk/maps


I have the webpage and the form, but just need to know hot get the cursor to go straight to the form?
efandango is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-21-2008, 05:24 PM
  #2
althalus
machinemade
 
althalus's Avatar
 
Join Date: Jan 2004
Location: Inferno - 7th Circle, Inner Ring
Posts: 3,352
iTrader: (1)
althalus is a jewel in the roughalthalus is a jewel in the roughalthalus is a jewel in the rough
Look into form focus. :-] (I pulled out one page of many, dunno if this is the best)
__________________

░░░░░[[[ 隠退生活 ]]]

althalus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-22-2008, 08:55 AM
  #3
efandango
Novice (Level 1)
 
Join Date: Nov 2008
Posts: 5
iTrader: (0)
efandango is an unknown quantity at this point
I don't know why, but that code doesn't work on my page.

I even pasted the default code, nad it still doesn't work. Is there any alternative code that will work?
efandango is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-22-2008, 09:20 AM
  #4
althalus
machinemade
 
althalus's Avatar
 
Join Date: Jan 2004
Location: Inferno - 7th Circle, Inner Ring
Posts: 3,352
iTrader: (1)
althalus is a jewel in the roughalthalus is a jewel in the roughalthalus is a jewel in the rough
Did you change the names accordingly?

Hmm ok try this, from a different source:
Quote:
All you need do is put
onLoad="self.focus();document.Form_Name.Field_Name.focus()" inside the <body> tag,
where "Form_Name" is the name of your form, and "Field_Name" is the name of the first field.

Source
That should work, at least the script works for me (looking at their site).
__________________

░░░░░[[[ 隠退生活 ]]]

althalus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-23-2008, 05:06 PM
  #5
efandango
Novice (Level 1)
 
Join Date: Nov 2008
Posts: 5
iTrader: (0)
efandango is an unknown quantity at this point
Just to say thanks for the second sample code. I finally got it to work

Last edited by efandango : 11-25-2008 at 04:25 PM. Reason: code update
efandango is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:41 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.