
Call JavaScript function from VBS
Quote:
>Is it possible to call a JS function from a VBS sub, more especially
>is something like
Yes. Try this little demo:
<html><head>
<script language="javascript">
function hello(txt) {alert(txt);}
</script>
<script language="vbs">
sub relay(msg)
hello msg
end sub
</script>
</head><body>
<input type=button value="Hello, World!" id=btn onClick=relay(btn.value)>
</body></html>
--
Dave "Crash" Dummy - A weapon of mass destruction
http://lists.gpick.com