JavaScript Open Url in New Tab
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Javascript Demo</title> <script type="text/javascript"> function OpenUrl(url) { var winObj = window.open(url, '_blank'); winObj.focus(); } </script> </head> <body> <a href="javascript:void(0)" onclick="OpenUrl('https://www.google.com')">Open In New tab</a> </body> </html>
<html> <head> <title>Javascript Demo</title> <script type="text/javascript"> function OpenUrl(url) { var winObj = window.open(url, '_blank'); winObj.focus(); } </script> </head> <body> <a href="javascript:void(0)" onclick="OpenUrl('https://www.google.com')">Open In New tab</a> </body> </html>
Copyrights@tutorialsplane.com