I have an html javascript program that opens 4 browser windows. I want to run this from the command line and include arguments that specify the URLs to be opened. Is this possible?
The current code looks like this:
<html>
<script>
function openWindows(url1, url2, url3, url4) {
window1=window.open(url1,'','width=725,height=480');
window1.moveTo(0, 0);
window2=window.open(url2,'','width=725,height=480');
window2.moveTo(0, 480);
window3=window.open(url3,'','width=725,height=480');
window3.moveTo(725, 0);
window4=window.open(url3,'','width=725,height=480');
window4.moveTo(725, 480);
};
</script>
<body onload="openWindows()">
</html>
How can I modify it so that it can be run with URL arguments form the command line? Im using a macbook. Thanks