I have an array name params in my script1.js file...
Now, there's another file page1.htmin the same folder as the script and I want to accomplish the following in this page
... header, body, etc
<script>
//code to get the array called params from script1.js
document.function1();
document.function2();
</script>
Now I cant use <script src="script1.js"> because script1.js is called in another page with document attributes and opens a couple of other windows but that's irrelevant...
I want to import the params array from a .js file inside the script tags in my new page. Is there a way??
EDIT:
The script1.js file starts like this
jQuery(document).ready(function () {
path = //code to get path
openpage = window.open(path+'page.htm');
setTimeout(function(){
// some code
openpage.close();
}, 1000);
}