View Full Version : Looking For A specific Cursor Code
singmusik04
08-14-2006, 08:57 PM
Does anyone know a script that will command my cursor to start @ a certain point on the page when someone visits?
ie, yahoos home page automatically starts the cursor at the search box
thank you!
www.yahoo.com:confused:
singmusik04
08-14-2006, 09:06 PM
sorry, it is not the cursor, it is the blinking vertical line that we see when we type everything...what is that called anyway? lol
blm126
08-14-2006, 09:38 PM
<script type="text/javascript">
document.onload = focusit;
function focusit(){
document.getElementById('focus').focus();
}
</script>
Place the above code in the <head> of the document. Make sure to add an id focus to the text box in question. For example
<input type="text" id="focus">
singmusik04
08-14-2006, 09:50 PM
thank you so very much for replying...
i put the code in the head of the page and then added the other code to the actually search box (freefind.com-internal search engine)
unfortuanately it only produced another search box...
i would appreciate help so much! thank you!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.