Hi there,
Are you sure it's an issue with the way you call your function? Your example should work. The following code results in four links that all say Hello:
Code:
<html>
<head>
<script type="text/vbscript">
Function SayHello()
MsgBox "Hello"
End Function
</script>
</head>
<body>
<a href="#" onclick="SayHello()">Click Me</a><br />
<a href="vbscript:SayHello()">Click Me</a><br />
<a href="javascript:void(0);" onclick="SayHello()">Click Me</a>
<a href="javascript:void(0);" language=VBscript onclick="SayHello()">Click Me</a>
</body>
</html>
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.