Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Northern California
    Posts
    50
    Thanks
    2
    Thanked 0 Times in 0 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
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •