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 7413747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:57:09+00:00 2026-05-29T06:57:09+00:00

I have only the most basic knowledge of web scripting, but i’m trying to

  • 0

I have only the most basic knowledge of web scripting, but i’m trying to learn something.
Here what I want to do:

I have a place in a server of my university and have a page there, id like to have some output of what happened in there. So i want to write into a file on click, which places in the same folder as html, also I would like to know how to open file at the end of it (like fstream::app in c++) and get system time.

Here’s what I wrote:

<HTML>
<SCRIPT language="JavaScript">

function WriteFile() 
{
   var fso  = new ActiveXObject("Scripting.FileSystemObject"); 
   var fh = fso.CreateTextFile("/net/my path/2011/rija9995/www/Test.txt", true); 
   fh.WriteLine("Some text goes here..."); 
   fh.Close(); 
}

</SCRIPT>
<HEAD>
<TITLE>title</TITLE>
</HEAD>
<BODY VLINK=#FF0000 link=#FF0000 alink=#FF0000 bgcolor=#aaaa88 text=#FFFFFF>
<H6>
<TT><CENTER><h2>
<br><br><br><br><br><br><br><br><br><br><br><br><br>
blah blah blah
<button id="button" type="text" onClick="javascript: WriteFile();" />x</button>
</BODY>
</HTML>
  • 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-29T06:57:10+00:00Added an answer on May 29, 2026 at 6:57 am

    Java script cannot have control on server side file system. You need to use a server side language instead i.e cgi-scripts/PHP/Java servlets etc. See this for more details.

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

Sidebar

Related Questions

I have only a basic knowledge of css, is it possible to inherit a
I'm developing a WPF app using MVVM. Most of my views have only xaml
I have 6 months of data, how do I replicate only the most current
I have a couple of simple forms that send an html-only email. Most clients
I have only a basic understanding of Eclipse RCP. I am about to start
I have only been working with sharepoint for three months but right from the
It seems like most of the messaging systems I've looked at have basic, if
I have been trying to validate my web page for the last two hours,
I've been doing some simple web programming using python, and I have a basic
I'm trying to use SWIG to create a Octave function. But even the most

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.