Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html button javascript void

<a href="javascript:void(0);">
  Click here to do nothing
</a>

<a href="javascript:void(document.body.style.backgroundColor='green');">
  Click here for green background
</a>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #html #button #javascript #void
ADD COMMENT
Topic
Name
8+5 =