check on what page i am javascript code example Example: javascript detect page if ( document.URL.includes("homepage.aspx") ) { //Code here }