Introduction:
In this short post, find jQuery code to check if URL contains "#" (hash)
or not. This can be checked via location.hash property provided by
JavaScript and same can be used in jQuery.
Example:
$(document).ready(function(){ if(window.location.hash) { // # exists in URL } else { // No # in URL. } });
0 comments :
Post a Comment