adsense


Saturday, 7 November 2015

VB SCRIPT ONCLICK TYPE PAGE 22

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




VB SCRIPT ONCLICK TYPE





onclick Event Type 

This is the most frequently used event type, which occurs when a 
user clicks mouse's left button. You can put your validation, 
warning, etc., against this event type. 
Example 
<html> 
<head> 
<script language="vbscript" type="text/vbscript"> 
 
Function sayHello()  
   msgbox "Hello World" 
End Function 
 
</script> 
</head> 
<body> 
<input type="button" onclick="sayHello()" value="Say Hello"/> 
</body> 
</html> 
It will produce the following result, and when you click the Hello
 button, the onclick event will occur which will trigger sayHello() function. 


No comments: