On "Page Info > Links", saving Name and Address

Discussion of general topics about Mozilla Firefox
RioBORG
Posts: 1
Joined: December 16th, 2008, 5:07 pm

Re: On "Page Info > Links", saving Name and Address

Post by RioBORG »

Hey there guys...

Somebody pointed me this thread when I asked about a question like this.

I tried the bookmarklet thing and it works for me.

I just would like to know if it's possible to make a code to generate a page with links in the following format:

Link1
http://www.anything.com

Link2
http://www.anythingelse.com

Sorted by the words represented by Link1, Link2, Link3

Thanks a lot.
User avatar
jscher2000
Posts: 11758
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: On "Page Info > Links", saving Name and Address

Post by jscher2000 »

JavaScript can sort an array alphabetically (see http://www.w3schools.com/jsref/jsref_sort.asp). So in theory you could alter the code to store all of the info in an array, and sort it before writing it out to a new page.
Post Reply