Check if a URL contains a given string using JavaScript

Click the button to check if the URL of this page contains the string "?book="

Go back to the Tutorial
More interesting and interactive Demos