Is it possible to show a blinking cursor where someone clicks in a div just like it would normally behave in a textarea?
| SitePoint Sponsor |




Is it possible to show a blinking cursor where someone clicks in a div just like it would normally behave in a textarea?


Not with HTML. You might fake something with JavaScript, perhaps.
Birnam wood is come to Dunsinane




Can we move this question?
How does tinymce do it?




That is pretty cool... is there anything that is cross browser compatible?





★ James Padolsey
–––––––––––––––––––––––––––––––––––––––
Awesome JavaScript Zoomer (demo here)
'Ajaxy' - Ajax integration solution (demo here)


It works in Opera, too (although you may need to click on the element before the cursor becomes visible).
This isn't HTML, though, since contentEditable isn't declared in any official HTML DTD.
Birnam wood is come to Dunsinane
Bookmarks