Hi, I am trying to make a pop up that does the following:
- Pops up (on user req) (DONE)
- When you click a link it:
- starts downloading a file (DONE)
- Closes the parent window (NOT DONE)
- Closes its self (DONE)
I am using the follwing in the top of the pop up:
<SCRIPT LANGUAGE="JavaScript">
this.focus();
function GoDownLoad(URL){
window.open(URL);
parent.close();
this.close();
}
</SCRIPT>
Where am I going wrong?
Cheers if you can enlighten me...
M@)
- Pops up (on user req) (DONE)
- When you click a link it:
- starts downloading a file (DONE)
- Closes the parent window (NOT DONE)
- Closes its self (DONE)
I am using the follwing in the top of the pop up:
<SCRIPT LANGUAGE="JavaScript">
this.focus();
function GoDownLoad(URL){
window.open(URL);
parent.close();
this.close();
}
</SCRIPT>
Where am I going wrong?
Cheers if you can enlighten me...
M@)