WHAT WOULD BE THE HTML SCRIPT TO REDIRECT SOMEBODY TO A DIFFERENT SITE IN A NEW WINDOW?

Question by Marshall:
what would be the HTML script to redirect somebody to a different site in a new window?
I want to make it so when someone goes to my site, they have to click on a link, and then the link will open a new window and go to that site, but then they can just close the new window and the original window will let them through to all the content of my site.
TYIA
——————————————
Answer by Haziman
onclick="window.open('welcome.html')">
Open a new window
——————————————
What do you think? Answer below!









about 2 years ago
html is a markup language – It is used for developing static web page
Javascript – more of client side – is used for making a html page more dynamic like
* calculating whatever depending on inputs in a html page…..
* initiating events on some action by the user
* displaying dynamic contents etc