Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

navigate to url jquery

//As an HTTP redirect (back button will not work )
window.location.replace("http://www.google.com");

//like if you click on a link (it will be saved in the session history, 
//so the back button will work as expected)
window.location.href = "http://www.google.com";
Comment

PREVIOUS NEXT
Code Example
Javascript :: import react icons module 
Javascript :: jquery prevent event bubbling 
Javascript :: javascript convert float to int 
Javascript :: bootstrap show modal on page load 
Javascript :: how to remove modal-backdrop fade in jquery 
Javascript :: adding a button in javascript 
Javascript :: chartjs how to disable animation 
Javascript :: javascript replace spaces with nbsp 
Javascript :: how to reset checkbox jquery 
Javascript :: javascript int max 
Javascript :: python print pretty json 
Javascript :: regex match letters and special characters 
Javascript :: url validator javascript 
Javascript :: js for each element class 
Javascript :: javascript document load 
Javascript :: javascript open url 
Javascript :: javascript move element in array to end 
Javascript :: space between react native 
Javascript :: message.channel.fetchMessages is not a function 
Javascript :: × MUI: makeStyles is not longer exported from @mui/material/styles. You have to import it from @mui/styles. 
Javascript :: delete all children of div 
Javascript :: vue get window width 
Javascript :: moment add 30 days 
Javascript :: find sibling in jquery 
Javascript :: roman numeral converter + javascript 
Javascript :: nativeelement angular add class 
Javascript :: jquery onchange input value 
Javascript :: Javascript detect mobile browser 
Javascript :: react-redux imports 
Javascript :: javascript binary to int 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =