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 :: jquery duplicate last table row 
Javascript :: save form data jquery 
Javascript :: js insertbefore 
Javascript :: How to get the input from a textbox javascript 
Javascript :: run jest on single file 
Javascript :: how to remove first child in javascript 
Javascript :: javascript websocket 
Javascript :: addeventlistener js select item 
Javascript :: contenteditable paste plain text 
Javascript :: concat object 
Javascript :: javascript remove duplicates from array 
Javascript :: how to show 1 day ago in javascript 
Javascript :: arabic regex javascript 
Javascript :: how to read 2 dimensional array in javascript 
Javascript :: concantene number in js 
Javascript :: Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. 
Javascript :: javascript bubble sort 
Javascript :: js remove if 
Javascript :: jest enzyme test receive submit 
Javascript :: javascript break with for Loop 
Javascript :: express uncaughtException 
Javascript :: react native button top right 
Javascript :: hover effect in material ui 
Javascript :: jquery select input with class 
Javascript :: queryselector name attribute 
Javascript :: how to convert node list to array in javascript 
Javascript :: bulk create in sequelize 
Javascript :: how to read all files in a folder in node js 
Javascript :: react native override style 
Javascript :: regular expressions password contains number 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =