No page reload

Discussion in 'JavaScript' started by Rub3X, Mar 4, 2012.

  1. #1
    Trying to modify a web based remote for a media player so when you click on volume up down next play etc the page does not reload. Currently the html looks like this:

    <area shape="rect" coords="406,224,474,311" href="&amp;zpfunc=fnVolDown" alt="Volume Down" />

    What javascript can I add to stop the page from reloading each time that link is clicked?
     
    Rub3X, Mar 4, 2012 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    try to add onclick="return false;"
     
    JohnnySchultz, Mar 6, 2012 IP
  3. rkstech

    rkstech Active Member

    Messages:
    195
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #3
    or use onclick = "javascript();" this serves as an empty function and does not reload
     
    rkstech, Mar 7, 2012 IP