I'm trying to include a .js file like this:
<script src="javascriptfile.js"></script> But, what I really want, is to pass some parameters to my .js-file like this:
<script src="javascriptfile.js?id=3482"></script> How should I read the id= part from inside the .js file?
document.location.searchgets the querystring, but I don't really think it's a good idea to do this.