F
Flip
I have a website that's using Master pages (very cool). But when I put JS
on there (to close the browser for example) coming from an external file,
when I navigate away from the first page, the JS no longer works. Can
someone explain why this is happening? How can I fix this so that the JS is
generic enough to work on every aspx to be included in the external JS file?
The external JS file looks like this right now
function closePage()
{
this.window.close();
}
I've tried it without the this, but then nothing seemed to work.
Thank you.
on there (to close the browser for example) coming from an external file,
when I navigate away from the first page, the JS no longer works. Can
someone explain why this is happening? How can I fix this so that the JS is
generic enough to work on every aspx to be included in the external JS file?
The external JS file looks like this right now
function closePage()
{
this.window.close();
}
I've tried it without the this, but then nothing seemed to work.
Thank you.