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

  • Home
  • SEARCH
  • 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 3426152
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:40:48+00:00 2026-05-18T06:40:48+00:00

Situation:- I have created a installation setup(local) that returns a URL eg:- ved.test.com which

  • 0

Situation:-
I have created a installation setup(local) that returns a URL eg:- ved.test.com which is mapped to an IP 11.22.33.44.
Thus to make the web application accessible after installation, user has to make an entry in the hosts file under “C:\WINNT\system32\drivers\etc” directory explicitly.

Approach:-
After the installation application gets completed, application writes the file using Javascript.

Problem:-
Writing a File using Javascript is supported in IE. I need a Solution for Firefox.
Code used:-

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Write To A File</title>
<script language="javascript">
    function WriteToFile()
    {
    /* The below statement is supported in IE only */
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var s = fso.CreateTextFile("C:\\Test.txt", true);
    s.WriteLine('IE Supports Me!');
    s.Close();
    }
</script>
</head>
    <body onLoad="WriteToFile()">
</body>
</html>

Have also refered the link in SO:-
How to read and write into file using JavaScript

Kindly provide a solution that supports writing a file using Javascript that runs in Firefox browser.

Thanks in Advance.

  • 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-05-18T06:40:49+00:00Added an answer on May 18, 2026 at 6:40 am

    You can’t do this, for hopefully obvious security reasons. JavaScript has no access to the file system…in IE it’s not JavaScript, but ActiveX doing this…it just has a JavaScript API exposed.

    The problem isn’t that Firefox doesn’t do this…it’s that IE ever allowed it 🙂

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

Sidebar

Related Questions

Situation: I have a simple XML document that contains image information. I need to
I have the following situation: I have a certain function that runs a loop
The situation: I have a pieceofcrapuous laptop. One of the things that make it
My situation: I have several components, which sometimes have changes to them, and are
I have a situation where I want to create a signature of a data
I have a simulation that reads large binary data files that we create (10s
I have following situation: I have loged user, standard authentication with DB table $authAdapter
My Situation I have a N rectangles The rectangles all have the same shape
Here's the situation: I have a label's text set, immediately followed by a response.redirect()
Here is the situation: I have been called upon to work with InstallAnywhere 8,

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.