'search' Example : search « Javascript Properties « JavaScript Reference

'search' Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    alert(document.getElementById("myA").search);
}
</script>
<a id="myA" 
   href="http://www.java2s.com?index"
   target="_blank">java2s.com Site</a>
<input type="Button" id="myB" value="Wescom Advocar" onClick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.'search' Syntax and Note
2.'search' is applied to