javascript get user selected text
@March 28, 2008, 4:43 p.m.
IE version:
document.selection.createRange().duplicate().text;
Firefox version:
document.getSelection();
For all browser selected():
<input type="button" onclick="alert(selected())" />
<script type="text/javascript">
function selected(){
if (document.selection) return document.selection.createRange().duplicate().text;
else return document.getSelection();
}
</script>
document.selection.createRange().duplicate().text;
Firefox version:
document.getSelection();
For all browser selected():
<input type="button" onclick="alert(selected())" />
<script type="text/javascript">
function selected(){
if (document.selection) return document.selection.createRange().duplicate().text;
else return document.getSelection();
}
</script>
Permanent URL:
http://javascript.gakaa.com/tips-selected-text.aspx
lipitor 20mg tablet <a href="https://lipiws.top/">order generic atorvastatin 80mg</a> lipitor order
Tycvyq
- 10 months
buy lipitor 20mg sale <a href="https://lipiws.top/">lipitor 10mg tablet</a> order lipitor generic
Txvrpx
- 10 months
hi
gautham
- 2008-11-07
Powered by Linode.