Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Place Cursor in textbox automatically on-page load
Old 09-10-2005, 11:23 PM Place Cursor in textbox automatically on-page load
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
How do you place the cursor in the textbox (only one, it's a search page) automatically when the page loads? Like Google does.
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-11-2005, 12:44 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Google is your friend:
http://www.codeave.com/javascript/code.asp?u_log=7017
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 09-11-2005, 02:40 PM
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
I can't get that to work, and I've already found that.
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
Old 09-11-2005, 04:48 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Could you give an example of your code? This code is working fine for me in Safari and FireFox:

HTML Code:
<html>
	<head>
		<title>Test</title>
	</head>
	<body>
		<input type="text" id="textbox1" size="20">
		<script>document.getElementById('textbox1').focus()</script>
	</body>
</html>

Last edited by funkdaddu; 09-11-2005 at 11:18 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-04-2005, 09:08 PM
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
Ok, I got it to work. I didn't know you had to add the "id" attribute to it. The site's Spiralfive Search. Thanks.
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Place Cursor in textbox automatically on-page load
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.84247 seconds with 12 queries