open link in new tab html button onclick code example
Example 1: open page with html
<!DOCTYPE html>
## Code by Scratchy (Twitter @S_cratchy)
<html>
<body>
<a href="https://www.Google.com" target="_blank">Gooooooooogle!</a>
</body>
</html>
Example 2: button onclick open video in new window
<button onclick="window.open('http://www.something.com');">new window</button>