Web Analytics Made Easy -
StatCounter Javascript/VBScript and href's - CodingForum

Announcement

Collapse
No announcement yet.

Javascript/VBScript and href's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript/VBScript and href's

    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.....

  • #2
    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.
    Glenn
    vBulletin Mods That Rock!

    Comment

    Working...
    X