I am trying to open multiple websites, attaching the sample code.
Code works but it opens only one website and then gives a blocker popup. Once I click on "Always allow pop-ups and redirects" it works. Is there a way this can be avoided.
I checked below article and but didn't get the solution
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="text/javascript">
function openWebsites() {
window.open("https://www.google.com/")
window.open("https://www.facebook.com/")
window.open("https://stackoverflow.com/")
}
</script>
</head>
<body>
<div class="center">
<input type="button" value="Open Websites" onclick="openWebsites()"
title="Open" />
</div>
<footer>
</footer>
</body>
</html>