homepage Welcome to WebmasterWorld Guest from 54.145.172.149
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
can't copy and paste info listed on a page info
copy page info
Stewie09

5+ Year Member



 
Msg#: 3530488 posted 6:24 pm on Dec 18, 2007 (gmt 0)

When right-clicking on a page, select View Page Info, click on Links, a window shows a listing with the following information name, address, type, and traget. When I "Select All > Copy" and paste the content into Notepad or Excel, I receive only the links but not the other listed information. How can I get/copy all the listed information to paste in notepad or excel?

Thank you for your help.

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3530488 posted 7:24 pm on Dec 18, 2007 (gmt 0)

Welcome to the forums, Stewie09.

I can't find a way to do this, either. It seems strange to display the information but not let it be copied. I've tried several approaches with not success so far - has anyone else found a solution?

lavazza

5+ Year Member



 
Msg#: 3530488 posted 8:20 pm on Dec 18, 2007 (gmt 0)

From [forums.mozillazine.org...]


Well here's a quick and dirty solution:
Copy the contents of this code to your clipboard
Go into Bookmark manager and create a new bookmark
Give it any name you like
Paste my code into the "Location" box.
and close.

Now if you click that book mark, it will open a new window and paste in the links and their text strings as a table. You can then copy and paste the table.
Code:

javascript:x=document.getElementsByTagName(%22A%22);y=window.open();y.document.write(%22<HTML><HEAD></HEAD><BODY><table>%22);for(n=0;n<x.length;n++){y.document.write(%22<tr><td>%22+x[n].text+%22</td><td>%22+x[n].href+%22</td></tr>%22);}y.document.write(%22</table></BODY></HTML>%22);y.document.close();void 0;

Sorry it's so wide but it's imperitive that you have no spaces in this line of code.

It only checks for Anchors tags (not other types of links)
Hope this helps.


Stewie09

5+ Year Member



 
Msg#: 3530488 posted 9:36 pm on Dec 18, 2007 (gmt 0)

lavazza

Thank you for responding and for trying to help. I tried the suggested solution, but it did not work for me.

lavazza

5+ Year Member



 
Msg#: 3530488 posted 10:25 pm on Dec 18, 2007 (gmt 0)

Hmmm...

workd for me, in FF and Opera...

one thought,

If you missed the 0; that comes after the word void, it won't work

Oh...

and apologies for the looooooooooooong line...

isn't sideways scrolling a chore!?!?

Stewie09

5+ Year Member



 
Msg#: 3530488 posted 5:59 pm on Dec 19, 2007 (gmt 0)

Lavazza,
I tried the code on a site that does not use frames, and it works. The site that I am working on has frames. Any more suggestion?

Thanks

lavazza

5+ Year Member



 
Msg#: 3530488 posted 6:59 pm on Dec 19, 2007 (gmt 0)

In Firefox:

Context Menu (typically via a right-mouse click) of the relevant frame
\ This Frame
\ Show Only This Frame
\ Bookmarks
\ your-bookmark-name
\ ta-da!

Stewie09

5+ Year Member



 
Msg#: 3530488 posted 3:58 pm on Dec 20, 2007 (gmt 0)

Thank you guys...Brilliant! Excellent job! You have gotten me closer and closer to achieving this task. However, I notice that when I run the java script, it doesn't capture all the link names as they appear in the Link tab of the Page Info. Maybe a screenshot whould help to clarify, but I can't attach file.

lavazza

5+ Year Member



 
Msg#: 3530488 posted 6:41 am on Dec 21, 2007 (gmt 0)


However, I notice that when I run the java script,
it doesn't capture all the link names as they appear
in the Link tab of the Page Info

I have run an experiment...

With links styled by CSS classes:
the link names DO appear

With links styled by <b> and/or <i> tags:
the link names do NOT appear

Stewie09

5+ Year Member



 
Msg#: 3530488 posted 11:02 pm on Jan 3, 2008 (gmt 0)

Lavazza,

How do I incorpoarte or use your creative workaround (With links styled by CSS classes) so that I can capture all the information displayed by Page Info?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved