|
|
Q1041 Can I pass a query string to a *.js source file?
irt.org | Knowledge Base | JavaScript | Source | Q1041 [ previous next ] Q1041 Can I pass a query string to a *.js source file?I don't see the point of this. You can just set a variable before you embed the JavaScript source file:
There is only one URL associated with a page - the documents URL. If you were to use:
And then in test.js:
all that would happen is the JavaScript would display the search property of the current document and not the URL of the JavaScript source file. Feedback on 'Q1041 Can I pass a query string to a *.js source file?' |
-- div -->
|