/    Sign up×
Community /Pin to ProfileBookmark

writing files using JS

i want to maintain URL in a notepad file of every page opened in firefox (i m using greasemonkey)

can sumone help me…how to write sumthing in files using javascript???

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Jun 22.2008 — I don't think that GreaseMonkey allows writing to files. You can write to the about:config, but not files.
Copy linkTweet thisAlerts:
@rootJun 22.2008 — Are you wanting to make a file in Javascript?

You will need to use IE6 or 7 and ActiveX controls that javascript can use to perform local file writing, reading and copying and moving and deleting and the washing up.

You will find that the instant knee jerk reaction to using ActiveX controls is that "It not secure" or "Poses a security risk" which is just those narrow minded individuals views.

You might want to note that under VBScript, you have the same type of access BUT VBS and JS are not on the same playing field so if you decide to use VBS with JS, you need to use the functions that allow you to convert VBS data into a format that JS can read.

Although it is not wise to mix the two, it is possible with care but can often be the root of program debugging issues.
×

Success!

Help @madscientist spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...