Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to go to a link using javascript

//This works in all browsers:

window.location.href = '...';

/*If you wanted to change the page without it reflecting in the browser back
history, you can do:*/
window.location.replace('...');
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native reset cache 
Javascript :: jquery if id exists 
Javascript :: js if mobile browser 
Javascript :: jquery see if element is visible 
Javascript :: jquery slim min js url 
Javascript :: reset radio button jquery 
Javascript :: jquery remove all options but first 
Javascript :: react native text underline 
Javascript :: react-native how to get size of screen 
Javascript :: js extract only numbers from string 
Javascript :: react native debug apk 
Javascript :: add 24 hours to string date javascript 
Javascript :: how to console.log formData 
Javascript :: ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: ENOENT: no such file or directory, scandir 
Javascript :: Source file requires different compiler version (current compiler is 0.8.4+commit.c7e474f2.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version 
Javascript :: select2 destroy 
Javascript :: javascript uppercase first letter 
Javascript :: fetch json post 
Javascript :: counterup cdn 
Javascript :: js replace space with dash 
Javascript :: how to import lodash in react 
Javascript :: how to get the first key in a n object in javascript 
Javascript :: radio button onchange jquery 
Javascript :: socket io cdn 
Javascript :: add 1 day to date js 
Javascript :: remove all characters from string javascript 
Javascript :: jquery when you typing in input 
Javascript :: how to convert string to kebab case in javascript 
Javascript :: how to generate a random number in javascript 
Javascript :: node gitignore 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =