'selection' Example : selection « Javascript Objects « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Objects » selection 
'selection' Example

    
<html>
<body>
<body onclick="alert(document.selection.type);">
<p>Select this text</p></body>
</body>
</html>

    
      
      
Related examples in the same category
1.'selection' Syntax and Note
2.'selection' JavaScript Properties
3.'selection' JavaScript Methods
4.'selection' Event handlers
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.