Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q678 Can I unselect selected text?

You are here: irt.org | FAQ | JavaScript | Text | Q678 [ previous next ]

Only in Internet Explorer 4 with:

<SCRIPT LANGUAGE="JavaScript"><!--
document.selection.empty();
//--></SCRIPT>

The only thing that comes close in Netscape Navigator 4 is:

<SCRIPT LANGUAGE="JavaScript"><!--
window.find(' ');
//--></SCRIPT>

which changes the selection to the first space character in the document.

©2018 Martin Webb