How To Build A Multiple Websites URL Opener Web Tool

In one of my previous post, i told us how to open multiple website urls in tabs in our web browser simultaneously using some bulk url opener web tool. but am going to show us today how to build such nifty tool.
How To Build A Multiple URL Opener Web Tool
It very simple to build, just creating a JavaScript function and an HTML form with a onclick value of the JS function.

DEMO

Input as many urls as you want in the text area below, click on the open URL button and see how it works.



Building Process
  • Firstly, we need to create the JavaScript function and Add the code to the beginning or the end of your web page body.
    [javascript]
    function open_all(){
    var urls = document.getElementById("list_urls").value;
    var urls = urls.split('\n');
    var totalno = urls.length;
    var s;
    for(var i=0;i<totalno;i++){
    s = urls[i];
    if(s){
    if(s.substr(0,7)!='http://') s = 'http://'+s;
    window.open(s);
    }
    }
    return false;
    }
    </script>
    [/javascript]
  • Next, create an HTML form with the submit button having an onClick value of function openall()
    
    <form method="post" action="">
    <br />
    <textarea name="list_urls" id="list_urls" cols="60" rows="20"></textarea>
    <br /><br />
    <input value="Open URLs" class="submit" type="button" onClick="open_all();"><br /><input type="reset" value="Reset!"><br/></form>
    
     

Don’t miss out!
Subscribe to My Newsletter
Invalid email address