I want to have a custom text caret in my text field for my web page. I would like to have an old school block type blinking caret. Is this possible?
The simple answer is you can't (change the user's blinking caret) via javascript, html, or css as that is created and managed by the chrome (the browser beyond the DOM)
Wanna fake it? http://www.dynamicdrive.com/forums/showthread.php?t=17450
The code examples shown are pretty old, but the idea remains the same-- Make a blinking box and have it tail the input...
With thats all said, I highly suggest against using it in anything but the smallest, niche, 'for fun' way as having a javascript function fire and be altering the DOM on every keyDown is bordering on user abuse imho.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With