...

View Full Version : Javascript/VBScript and href's



Tanker
07-11-2002, 09: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.....

glenngv
07-12-2002, 02: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum