Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:30:44+00:00 2026-06-18T08:30:44+00:00

So, I have a rather odd question. I am writing client-side code (it HAS

  • 0

So, I have a rather odd question. I am writing client-side code (it HAS to be client side as a basic requirement) and need to create a popup which will display some code-generated output. Ideally, people should be able to copypaste this output in a txt file.

Now, when I create the window I can only write in it with my_window.document.write("Blah blah blah"). This means that I have to use html tags for things like going to the next line, and I basically have no easy way to tabulate. Since this is meant to be a data file, this is kind of annoying. Seeing how a browser is perfectly able to open a .txt file, isn’t there a way to write to this document telling the browser to read it not as an .html, but as a .txt file? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:30:46+00:00Added an answer on June 18, 2026 at 8:30 am

    I don’t think that’s possible. What tells the browser the type of document is the content-type HTTP header, which is sent from the server.

    But you can always dump your whole content into a <pre> element, or a <textarea>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather odd problem: I need to maintain a chunk of code
Alright, I have a rather odd question here. I feel much more comfortable writing
I have an odd question. Let's assume I create something using scaffolding. This should
I have a rather odd bug in an application which I have managed to
I have a rather odd program where I need to load a file into
I have been given a rather odd requirement to fulfill for a particular solution.
I have some rather odd behavior in my D program that I've narrowed down
Ok, I have some rather odd behavior in one of my Projects and I'm
I have recently been faced with a rather odd task, one result being the
I am having a rather odd problem with the Gecko Webbrowser control, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.