Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

force download of page

 
a chandra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the user to be made to download a .txt file if he click on the download button. But, both netscape and ie open the page in the browser iwndow without giving the user an option to download the file.
Can I force the browser to pop up the save as option instead of opening the page in the browser.
Thanks
Amit
 
Randall Twede
Ranch Hand
Posts: 4481
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a chandra,
one way to do that would be to change the extention from .txt to something else(.text maybe?). the only problem with that approach is that the user might not realize it is really a .txt file. there might be a better way but I dont know of it.
I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp
please register again with a valid name.
[This message has been edited by Randall Twede (edited July 07, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic