JavaScript DHTML/Event onMethod/onSelectStart

Материал из Web эксперт
Перейти к: навигация, поиск

"onSelectStart" Example

   <source lang="html4strict">
   

<html> <head> <script language="JavaScript">

  function function1() {
    alert("The wbex.ru home page will open");
    window.open("http://www.wbex.ru","","") 

} </script> </head> <body contenteditable=true>

  <a href="http://www.wbex.ru" 
     onselectstart="function1()">
  wbex.ru
  </a>

</body> <html>


     </source>