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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot get a script to run from a web page

Status
Not open for further replies.

Grunty

Technical User
Jul 30, 2002
100
GB
I have written a script that I would like to run from a web page with a button action. The script runs fine when run as a simple .vbs file, but as soon as I put in into the html, it wont run. I have posted the html code below, am I missing something obvious?

Thanks

<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<center>

<form>
<input type="button" value="Click Here" name="Btn">
<script language="VBScript" type="text/VBScript">

Sub Btn_onClick

{inserted vbscript}

End Sub

</script>

</form>
</center>

</body>

</html>
 
what you missed :
Code:
<input type="button" value="Click Here" name="Btn" [red]onclick="Btn_onClick()"[/red] >

Water is not bad as long as it remains outside human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top