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
https://forums.phpfreaks.com/topic/154556-save-urls-into-txt-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.