Sounds like you want to download the content of web pages. Have you tried wget? It does exactly that.
But to answer your original question (how do I open new tabs in the web browser?), you could insert the following code into the output HTML:
<A HREF="javascript:OpenMyWindows();">Open My Windows</A> <SCRIPT> MyURLS = [ "https://www.perlmonks.com", "https://www.foxnews.com", "https://duckduckgo.com", "https://www.yahoo.com" ]; function OpenMyWindows() { while (MyURLS.length) window.open(MyURLS.shift()); } </SCRIPT>
^ This will create a link, and when you click that link, several new tab will be created. BUT your web browser will block them, because they are popups. So, you have to click on Allow popups from your site.
You could create a popup or new tab as soon as the browser loads the page without having to click anywhere, but the browser will again block your popup:
<SCRIPT> window.open("https://www.yahoo.com"); </SCRIPT>
In reply to Re: Can my Perl CGI script open a new browser tab or window?
by harangzsolt33
in thread Can my Perl CGI script open a new browser tab or window?
by SergioQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |