Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to turn off auto refresh a href in javascript

$(document).ready(function(){
  $("a[href=#]").on("click", function(e){
    e.preventDefault();
  });//a[href=#] click
});//document ready

//prevent default to turn off auto refresh
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #turn #auto #refresh #href #javascript
ADD COMMENT
Topic
Name
2+9 =