Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download window that takes over parent

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I've been to a site before when I downloaded a file by clicking a button (or text) and when the download window popped up, the parent window disappeared, what's the code for that?

Thanks,
Tim
 
<a href=&quot;the_file_to_download.xxx&quot; onclick=&quot;window.close()&quot;>download now</a>
but you'll always have the pop up coming to ask wether the user wants to close the window or not (you can't disbale this pop up unless YOU created the window (using window.open())) - to read more on this subject perform a search on this forum and in the jscript one, there are many threads discussing how to disable this popup


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top