Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

breakout to external link in react js

// in same tab:
window.location.replace('https://www.google.com')

// in new tab:
window.open('https://www.google.com', '_blank');
Comment

PREVIOUS NEXT
Code Example
Javascript :: _.escape underscore 
Javascript :: how to calculate time taken for ajax call in javascript 
Javascript :: get numbers from a string 
Javascript :: floor javascript 
Javascript :: apply() js 
Javascript :: javascript Create a RegEx 
Javascript :: mongoose find in array 
Javascript :: how to add image url in tailwindconfig .js 
Javascript :: for of and for in javascript 
Javascript :: js alertify.success parameters 
Javascript :: node_modules/metro/src/lib/attachWebsocketServer.js 
Javascript :: git reset local branch to origin 
Javascript :: for of loop ecmascript6 
Javascript :: while loops js 
Javascript :: how to send csrf middleware token in django ajax 
Javascript :: mongooseautoincrement 
Javascript :: reactjs .net pass value to react 
Javascript :: sendmediagroup telegram nodejs 
Javascript :: jquery check component exists 
Javascript :: what is functional programming 
Javascript :: How to use `setState` callback on react hooks 
Javascript :: how to get all scripts on a page javascript 
Javascript :: api streamelements watchtime 
Javascript :: javascript push 
Javascript :: flutter local json storage 
Javascript :: onclick automatically called after 10 seconds 
Javascript :: why does javascript let you write a function without the parentheses 
Javascript :: strtok javascript 
Javascript :: how to Write a program that simulates a coin toss using random method of Javascript Math class 
Javascript :: basic react code 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =