JS get window url javascript window location href

window.location.href
Example for debuging of code

if (window.location.href.indexOf('/localhost')!= -1){
// debug code here
 
}
This entry was posted in Javascript css html and tagged , . Bookmark the permalink.


Comments are closed.

384 views