Jump to content

Save URLs into txt-file


Chinese

Recommended Posts

Hey all,

 

I’m instilling myself, with pleasure, JavaScript and that’s a reason why I made a Firefox Add-On which is filtering the URLs out of the source text.

I have already written this Code – it wasn’t so hard :P

That’s it:

	var links = content.document.getElementsByTagName('a');
for (var i = 0; i < links.length; ++i) {
    alert(links[i].getAttribute('href'));
};

 

After I read this article http://www.captain.at/programming/xul/ I’m interested in saving those links in a text-file, but I don’t know how to solve this problem.

 

Do you know another way how to do this?

 

Would you be so kind and helm me, please?

I’m despairing …

 

Thanks a lot,

Chinese from Germany  :)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.