Passing arguments to javascript file, how does it work?
- by vietean
From the tutorial ScriptJSONOptions of FirebugLite page, I found the below:
Script JSON options
It is possible to set options using a JSON object inside the linked script:
<script type="text/javascript"
src="https://getfirebug.com/firebug-lite.js">
{
overrideConsole: false,
startInNewWindow: true,
startOpened: true,
enableTrace: true
}
</script>
It means that we can pass the arguments to javascript file.
But I don't know how does it work?
Update:
My question is how to get the arguments inside the js file?
P/S:
I also looked into code, but I could not find the code is implemented this feature.