Difference between revisions of "Template:Example2"

Line 482: Line 482:
  
  
if ( wgPageName.indexOf("submit") >= 0  ) {
+
if( ($(location).attr('href')).indexOf("submit") >= 0  ) {
 
alert("here");
 
alert("here");
 
}
 
}
 +
 +
  
  

Revision as of 15:55, 5 July 2016