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






'onActivate' Example

 <head> <script language="JavaScript"> function function1() { window.open("http://www.java2s.com/", "", "width=700, height=600, resizable, scrollbars")  } </script></head> <body> <label for="myL" accesskey="L">Press Alt+L to invoke the link </label> <a id="myL" href="http://www.java2s.com/" target=_blank onActivate="function1()">  www.java2s.com </a> </body> 








Related examples in the same category

close