'onSelectStart' Example : onSelectStart « Event onMethod « JavaScript DHTML






'onSelectStart' Example

    
<html>
<head>
<script language="JavaScript">
   function function1() {
     alert("The java2s.com home page will open");
     window.open("http://www.java2s.com","","") 
} 
</script>
</head>
<body contenteditable=true>
   <a href="http://www.java2s.com" 
      onselectstart="function1()">
   java2s.com
   </a>
</body>
<html>

    
      
      








Related examples in the same category