Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to pass two parameters to a VB script function

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
This code works fine for one parameter but is not fien for two parameters...Please tell me how to correct this..


<HTML>
<HEAD>
<SCRIPT LANGUAGE=&quot;VBScript&quot; TYPE=&quot;text/vbscript&quot;>
Function EG (aaa,www)
Msgbox aaa,32,www
End Function

</SCRIPT>
</HEAD>

<BODY>
<FORM name=&quot;FORM1&quot;>
<INPUT type=button NAME=&quot;TEMP&quot; onClick= EG(&quot;aaa&quot;,&quot;sss&quot;)>
</FORM></BODY>
</HTML>
 
Give it a try:
<INPUT type=button NAME=&quot;TEMP&quot; onClick='EG &quot;aaa&quot;,&quot;sss&quot;'>
calling function with parameters is without parenthnesses
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top