How to save text to a div using JavaScript onmouseout

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-03-08T11:17:52Z Indexed on 2010/03/08 11:21 UTC
Read the original article Hit count: 181

Filed under:
|

Good morning all. I have a div that I'm able to save text to when I click a save button but what I would like is if the text would just automatically save on an onmouseout event. For example:

I have a div and two buttons (Save and Cancel). The user is currently able to mouse over the current text data inside the div, click on the text and they can then edit said text. The only way they can save this text is by clicking the save button. Is there a way to use onmouseout to save the text so that the user simply has to click and edit the text, then click away and have it saved? Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about onmouseout