writing to external javascript file

Giganews Newsgroups
Subject: writing to external javascript file
Posted by:  Andy Levy (andy_le…@hotmail.com)
Date: Wed, 3 Sep 2003

Hi

I have an external .js file to my webpaage.  Can i change the value of these
variables from my htm page, so that they are changed for good.

ie -  i know this wont work, but it is an example.

externalFile.js
-------------
var alpha = "This is some text"

frontend.htm
--------------
<form name="changer" method="get" action="externalFile.js">
<input name="alpha" type="text" id="alpha" value="this is some new text that
will completely replace the old text in the file">
</form>

Replies