By 15/02/2016 12 Comments

What is JavaScript:void(0) In JavaScript?

  • JavaScript:void(0) is a built-in function and has 0 as an argument in JavaScript.
  • JavaScript:void(0) returnsĀ undefined / nothing / false.
  • That function is used inside hyper link in HTML and it callsĀ user defined function.
  • All major browsers support that function.

Example:

<script>
function displaySiteName(){
 alert("Site name is tutorialstown.com");
}
</script>

<a href="javascript:void(0)" onclick="displaySiteName()"> Display Website Name </a>






Posted in: HTML, JavaScript, Solutions

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .