code tracing

Javascript Snippet To Find If URL Contains Page Name

This is a simple Javascript Snippet To Find If URL Contains Page Name. An analysis of the code execution is also given.