1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What does href="javascript:" mean?

Discussion in 'JavaScript and AJAX' started by Izaan, May 1, 2009.

  1. Izaan

    Izaan New Member

    Joined:
    Oct 16, 2007
    Messages:
    215
    Likes Received:
    2
    Trophy Points:
    0
    Code:
    <a href="javascript:">image here that has a onclick javascript call</a>
    What does above code do ?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    It would mean the Javascript code after : would be executed by the browser.
     

Share This Page