javascript - trigger onmouseout to remove current onmouseover -


i'm quite new javascript please bear me here.

html:

<td onmouseover="selecttext(this);" onmouseout="">.pricestor</td>

javascript:

function selecttext(obj) {              if (document.selection) {             var range = document.body.createtextrange();             range.movetoelementtext(obj);             range.select();         }         else if (window.getselection) {             var range = document.createrange();             range.selectnode(obj);             window.getselection().addrange(range);         }      } 

so, how remove selecttext() on onmouseout? thanks!

example: http://liveweave.com/9a0bve


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -