<script>
var config=true;
</script>
<script src="https://stackoverflow.com/questions/1017424/myscript.js"></script>
You can’t pass variables to JS the way you tried. SCRIPT tag does not create a Window object (which has a query string), and it is not server side code.
More Related Contents:
- html form that passes information to a variable in javascript [closed]
- Is there any way to specify a suggested filename when using data: URI?
- Programmatically change the src of an img tag
- Why is the value of my input always empty if I store it in a variable?
- Convert HTML to data:text/html link using JavaScript
- SecurityError: The operation is insecure – window.history.pushState()
- Javascript variables in HTML attributes
- Prepending “http://” to a URL that doesn’t already contain “http://”
- What are the differences between history.pushState & location.hash? [closed]
- Get HTML code using JavaScript with a URL
- How do I use this JavaScript variable in HTML?
- Remove fragment in URL with JavaScript w/out causing page reload
- Javascript-Setting background image of a DIV via a function and function parameter
- JavaScript – Get size in bytes from HTML img src
- how i can connect and login in mysql localhost in php by using this html code
- Are HTML comments inside script tags a best practice? [closed]
- Can I use HTML tags in the options for select elements? [duplicate]
- How to scroll to an element inside a div?
- Using the GET parameter of a URL in JavaScript [duplicate]
- In jQuery, how do I select an element by its name attribute?
- input type=file show only button
- Get value of input field inside an iframe
- Understanding Cross-Domain issue in Iframes
- How to change HTML Object element data attribute value in javascript
- how to add new to onclick with javascript
- Possible to associate label with checkbox without using “for=id”?
- How to submit a form when the return key is pressed?
- How to scroll to an element in jQuery?
- How to create a collapsing tree table in html/css/js?
- Convert JavaScript variable value to csv file