February 09, 2011, 04:22 AM
ChristianP[SOLVED] Blinking cursor in start text box
Hello,
how can i allocate a blinking cusor to a text box and change the art of blinking, after the form is loaded.
Christian
This message has been edited. Last edited by: Kerry, February 09, 2011, 05:36 AM
Ramkumar - Webfous
<SCRIPT id=clientEventHandlersJS type=text/javascript>
function setFocus(){document.getElementById("edit1").focus();}
</SCRIPT>
<BODY style="OVERFLOW: auto" onLoad="setFocus();">
<INPUT id=edit1 tabIndex=1 name=edit1>
</BODY>
February 09, 2011, 08:54 AM
<FreSte>... including changing of the cursor ...
<script id=clientEventHandlersJS type=text/javascript>
function setFocus() {
document.getElementById("edit1").focus();
document.getElementsByTagName("body")[0].style.cursor = "";
}
</SCRIPT>
<BODY style="OVERFLOW: auto; cursor:wait;" onLoad="setFocus();">
<INPUT id=edit1 tabIndex=1 name=edit1>
</BODY>
February 09, 2011, 09:39 AM
ChristianPPerfect!!!!
Thanks a lot!!!
Christian
February 09, 2011, 04:05 PM
WazWow, Javascript and HTML support.
Is it Cross Browser compliant ?
February 10, 2011, 01:28 AM
Ramkumar - Webfousyes Waz...
This code is cross browser compliant.
Tested in IE, Chrome and FireFox.
February 10, 2011, 03:40 PM
WazAwsome.