Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   Passing a parameter to a JS file (http://www.velocityreviews.com/forums/t870615-passing-a-parameter-to-a-js-file.html)

Adrian 07-07-2003 09:52 PM

Passing a parameter to a JS file
 
Hi
I have an application which calls a JS file, which contains a function,
which opens a browser an IE window as an MDI.

test.JS file contents below:

var AP = new ActiveXObject("Apoint.ASrv");
var OURL = AP.OpenBrowserMDIChildWindow("www.testurl.com");
AP =""


The js file is run by Windows scripting engine.

My question is if I want to open any url passed to the JS file on its
command line how would I do it?

E.g.
test.js www.microsoft.com
test.js www.testurl.com
etc

Thanks

Adrian





All times are GMT. The time now is 04:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.