I am trying to pass a variable to a vbscript function
using a button in my form. For some reason its not working for me. Can someone help me?
i appreciate any help
thanks
<script language="vbscript">
function send(filename2)
Value = MsgBox ("You deleted the file...",4,"You deleted the file.")
If Value = 6 Then
MsgBox filename2
Else
MsgBox "You pushed No!"
End If
end function
</script>
'VARIABLE SET
<%
filename2 = "testing"
%>
'HTML
<form id="form4" name="form3" method="post" onclick="send filename2" action="">
<input type="submit" name="Submit2" value="YES" class="style3" />
</form></td>
using a button in my form. For some reason its not working for me. Can someone help me?
i appreciate any help
thanks
<script language="vbscript">
function send(filename2)
Value = MsgBox ("You deleted the file...",4,"You deleted the file.")
If Value = 6 Then
MsgBox filename2
Else
MsgBox "You pushed No!"
End If
end function
</script>
'VARIABLE SET
<%
filename2 = "testing"
%>
'HTML
<form id="form4" name="form3" method="post" onclick="send filename2" action="">
<input type="submit" name="Submit2" value="YES" class="style3" />
</form></td>