![]() |
What is the code that google uses to get the cursor in the text box?
Does anyone have either this or similar code?
|
Body tag:
Code:
<body onLoad="document.formname.fieldname.focus()"> - change fieldname to the name you gave the input textfield. |
<script defer>
<!-- function sf(){document.f.q.focus();} window.rwt=function(b,d,f,j,k,g,l){var a=window.encodeURIComponent?encodeURIComponent:esc ape,h="",i="",c=b.href.split("#"),e="";if(d){h="&o i="+a(d)}if(f){i="&cad="+a(f)}if(g){e="&usg="+g}b. href="/url?sa=t"+h+i+"&ct="+a(j)+"&cd="+a(k)+"&url="+a(c[0]).replace(/\+/g,"%2B")+"&ei=L7N8RdfEOaTswQKVkp25Bw"+e+l+(c[1]?"#"+c[1]:"");b.onmousedown="";return true};// --> </script> That's it. Enjoy. |
The first option seems easier. Thanks to both of you!
|
All times are GMT -7. The time now is 02:30 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123