This site uses cookies from Google to deliver its services, to personalize ads and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. Learn More

How to check if query string present on URL using jQuery? - Javascript

tutsdot.blogspot.com - document.location contains information about the URL, and document.location.search contains the query string.

 if(document.location.search.length) { // query string exists } else { // no query string exists } 
You even don't require jQuery. You can do that using simple jQuery.

other source : http://developer-paradize.blogspot.com, http://google.com, http://detik.com

0 Response to "How to check if query string present on URL using jQuery? - Javascript"

Post a Comment

Contact

Name

Email *

Message *