Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

window.location

window.location.href = link;
// or
window.location.assign(link);
Comment

window location

document.getElementById("demo").innerHTML = 
"The full URL of this page is:<br>" + window.location.href;
//Result
//The full URL of this page is: https://www.w3schools.com/js/tryit.asp?filename=tryjs_loc_href

document.getElementById("demo").innerHTML =
"Page hostname is " + window.location.hostname;
//Result
//Page hostname is www.w3schools.com

document.getElementById("demo").innerHTML =
"Page path is " + window.location.pathname;
//Result
//Page path is /js/js_window_location.asp
Comment

JavaScript Window Location

document.getElementById("demo").innerHTML =
"Page location is " + window.location.href;
Comment

window location

echo "<script>alert('Successfully Updated'); window.location = './edit.php';</script>";
Comment

PREVIOUS NEXT
Code Example
Javascript :: my angular modal popup is not closing automatically 
Javascript :: Add remove link dropzone 
Javascript :: convert date to ist format javascript 
Javascript :: javascript is array or object 
Javascript :: object comparison in javascript 
Javascript :: react barcode scanner 
Javascript :: using datatable 
Javascript :: attr.disabled not working in angular 
Javascript :: jest express testing 
Javascript :: javascript htmlcollection 
Javascript :: Update matched key values in two JavaScript objects 
Javascript :: ajax timer 
Javascript :: toggle 
Javascript :: stop python script nodejs 
Javascript :: javascript cookies vs session vs local storage 
Javascript :: js editable table 
Javascript :: copia independiente array javascript 
Javascript :: javascript do while array 
Javascript :: html show password 
Javascript :: Accessing user input through js 
Javascript :: for in loop javascript 
Javascript :: express grpc example 
Javascript :: select jquery display none 
Javascript :: autocannon 
Javascript :: access to nested properties on javascript using property names 
Javascript :: URLSearchParams 
Javascript :: jquery to copy two input fields into one with a space between 
Javascript :: state in react 
Javascript :: set up emet for jsx in vs code 
Javascript :: mongoose mongodb updateone 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =