Answers for "onclick open url in same window"

2

window open same tab

window.open("https://www.youraddress.com","_self")
Posted by: Guest on November-13-2020
0

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")
Posted by: Guest on November-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language