views:

33

answers:

3

javascript:delete_reply_notify('14557174');void(0)

it make javascript delete one row which id = 1455174

but ,why is void(0)? what's mean ?

A: 

To prevent the page reloading upon a single click, we can use JavaScript:void(0); within the anchor link.

Reigel
A: 

stops the link activating. Best to avoid the javascript protocol if possible better to use the click event.

matpol
+1  A: 

Its to prevent the default behaviour of the link from being activated, namely redirecting the browser to a new page. Your example though shows poor JavaScript practice - you should look into coding things unobtrusively and into the use of progressive enhancement

seengee