Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving Cursor to End of Text in Firefox

Status
Not open for further replies.

kfgjn43

MIS
May 13, 2008
33
0
0
US
Hi. I am trying to make this web-based IDE work properly in Firefox: . This is what I have so far for Firefox: . The IE version adds a font tag before any angle brackets, making the tag turn green (thus providing a rudimentary form of color coding). But whenever I replace the text inside the div using JavaScript, Firefox (and Opera, incidentally) moves the cursor to the beginning of the text. IE moves it to the end whenever I replace the inner HTML, so the trick works for IE. Compounding the problem is the fact that I'm using a JavaScript method to make the div editable (document.getElementById("textArea").contentEditable = true;). It's not a text area. Thank you for any help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top