# How to pop up a Download Window

**URL:** <https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583>\
**Category:** Ruby\
**Created:** [January 25, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583 "2009-01-25T13:01:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 25, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583/1 "2009-01-25T13:01:42Z")

</div>

Hi all ,  
I have to show window as like you got on click of save(or by pressing of  
ctrl+s), which exact function like the crtl+s press.  
Please let me know if anyone having any idea regarding this.  
It would be great help for me.

Thanks In Advance.

---

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 25, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583/2 "2009-01-25T16:26:04Z")

</div>

Kumar S. wrote:

> Hi all ,  
> I have to show window as like you got on click of save(or by pressing of  
> ctrl+s), which exact function like the crtl+s press.  
> Please let me know if anyone having any idea regarding this.  
> It would be great help for me.

This is not a Ruby question, but it’s something I was trying to do  
recently too.

Google for “javascript save as”. From what I found, it can only be done  
in IE.

---

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 27, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158583/3 "2009-01-27T16:11:33Z")

</div>

On Sun, Jan 25, 2009 at 3:24 PM, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Google for “javascript save as”. From what I found, it can only be done  
> in IE.

This is a problem I faced recently enough. The proper solution is to set  
the appropriate HTTP header. I don’t have the reference handy, but it  
works  
for every browser.

The easiest way might be to look at HTTP traffic while doing the  
download.

regards,  
Richard
