Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-04-2004, 08:35 AM   #1 (permalink)
Senior Member
 
younghistorians's Avatar
 
Join Date: 10-13-03
Location: USA
Posts: 662
iTrader: 0 / 0%
Latest Blog:
None

younghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really nice
jump to form field

Does anyone know the code that Yahoo and Google use to have your cursor automatically jump to a text field? For instance, when you go to google, you can just start typing instead of having to click in the search box.


Anyone know or use this code?

thanks
younghistorians is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-04-2004, 08:40 AM   #2 (permalink)
SVB
Contributing Member
 
SVB's Avatar
 
Join Date: 10-13-03
Posts: 3,118
iTrader: 0 / 0%
Latest Blog:
None

SVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest order
[code:1:6a15114165]
<script language="javascript" event="onload" for="window">
<!--
for (oForm in document.forms) {
for (oElement in document.forms(oForm.id)) {
document.forms(oForm.id).elements(oElement.id).foc us();
break;
}
}
-->
</script>
[/code:1:6a15114165]
Stick that at the top of the page
__________________
It is "I couldn't care less"
SVB is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-04-2004, 08:40 AM   #3 (permalink)
Senior Member
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 833
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
onLoad="this.focus()"
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-04-2004, 08:45 AM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,356
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
You could try something like this.

[code:1:5d9ba42e07]<HTML>

<body onLoad="document.form_name.form_field.focus();">


<form name="form_name">
<input name="form_field" value="">
</form>

</body>
</html>[/code:1:5d9ba42e07]

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert form results to a hidden field... malhyp Coding Forum 3 06-02-2006 10:10 AM
Your recommended Form Field Validation Javascript bestempire Coding Forum 1 05-30-2006 08:18 AM
Form Field in Subject Line TGR Web Design Lobby 1 10-11-2004 11:08 AM
Changing size of the form field Sonti Coding Forum 1 05-06-2004 03:42 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:04 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.