everytime when i try to add javascript in a hta file with vbscript it comes an error message when i click the submit button:
object doesn't support this property or method
I try this
<script type="text/javascript" src=""></script>
and this
<script type="text/javascript">
...code
</script>
Is there anyone who know the problem?
//EDIT: I have the problem, i forgot a VBScript: to call the vbscript sub
THANKS!!
<input type="submit" value=" Submit " onclick="Submit" style="margin-left:100px;">
This is the right one:
<input type="submit" value=" Submit " onclick="VBScript:Submit" style="margin-left:100px;">
It’s hard to be sure because your question is not complete, however it is likely that you are putting your Javascript code inside VBScripts
<script></script>tags.” is like an opening bracket, and ” is like a closing bracket. The VBScript tags are only for VBScript and the Javascript ones are only for Javascript.
Put the following in SILLY.HTA and try it out: