Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #breakout #external #link #react #js
ADD COMMENT
Topic
Name
1+6 =