Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Best way to execute js only on specific page

$(function(){
  if($('body').is('.PageType')){
    //add dynamic script tag  using createElement()
    OR
    //call specific functions
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Best #execute #js #specific #page
ADD COMMENT
Topic
Name
7+1 =