"javascript: void(0);" problem

Discussion in 'JavaScript' started by zamuel, Jan 9, 2009.

  1. #1
    I have these codes in website:

    <td align="center">
    <a href="javascript: void(0);" id="browse">Browse</a> ¦
    <a href="javascript: void(0);" id="clear">Clear</a> ¦
    <a href="javascript: void(0);" id="upload">Upload</a> ¦
    <a href="javascript: void(0);" onclick="javascript: opener.location.reload(true); window.close();">Close</a>
    </td>

    But when i've clicked the Browse it was giving error. Link doesn't work for me. But my friend has tried it. He says it works. So what is the problem? What can i do fix this problem for me?
     
    zamuel, Jan 9, 2009 IP
  2. cont911

    cont911 Peon

    Messages:
    50
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cannot see problem, but if can repeat, you can replace 'void' with href="#"
     
    cont911, Jan 9, 2009 IP