Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript onclick open url same window

/* FIRST WAY*/
window.open("instagram.com/9_tay", "_self")
/* SECOND WAY*/
window.location.href = "instagram.com/9_tay"
/* THEARD WAY*/
window.location.replace("instagram.com/9_tay")
Comment

PREVIOUS NEXT
Code Example
Javascript :: react 404 page not found 
Javascript :: import all images from folder reactjs 
Javascript :: joi validation custom message in node 
Javascript :: javascript extract hour from string 
Javascript :: javascript write all the prime numbers from 1 to 100 
Javascript :: check if an object contains a value in javascript 
Javascript :: how to get innerhtml value in javascript 
Javascript :: textField input font color React Material UI 
Javascript :: convert array to object javascript 
Javascript :: internal/modules/cjs/loader.js:1122 
Javascript :: discord.js how to edit a message 
Javascript :: cypress custom error message 
Javascript :: react-router react-router-dom 
Javascript :: random item from array javascript 
Javascript :: cra redux 
Javascript :: Reverse pyramid star pattern in JavaScript 
Javascript :: js toggle value 
Javascript :: all inputs under div 
Javascript :: prevent a page from refreshing in react 
Javascript :: javascript on script loaded 
Javascript :: fileupload progress bar in axios 
Javascript :: Regular expression: Match everything after a particular word 
Javascript :: placeholder value js 
Javascript :: like knex 
Javascript :: javascript return longest string in array 
Javascript :: react native dimensions window vs screen 
Javascript :: input in javascript 
Javascript :: bootstrap alert auto close 
Javascript :: jquery get selected checkbox value array 
Javascript :: typeof array javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =