View Full Version : Javascript/VBScript and href's

07-11-2002, 10:56 PM
Not sure if this is the correct place to put this, but here goes...

In Javascript I can do something along the lines of:
<a href="javascript: functionname('value');">My Link</a>

I try the same thing within a VBSCRIPT page and it says object expected. Is there something along these lines in VBSCRIPT or is my formatting wrong?

Thanks in Advance.....

07-12-2002, 03:43 AM
i haven't used vbscript protocol in a link, but can a vbscript function be also called on this?

<a href="vbscript:if functionName('value')=true then msgbox('test')">My Link</a>

...just a thought.

Originally posted by Dave Clark
IE will accept the following:

<a href="vbscript:subroutineName('value')">My Link</a>

as long as you have the subroutine (not a function) defined.