Welcome to WebmasterWorld Guest from 54.166.114.43

Forum Moderators: incrediBILL

Message Too Old, No Replies

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

copy page info

   
6:24 pm on Dec 18, 2007 (gmt 0)

5+ Year Member



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.

7:24 pm on Dec 18, 2007 (gmt 0)

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



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?

8:20 pm on Dec 18, 2007 (gmt 0)

5+ Year Member



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.

9:36 pm on Dec 18, 2007 (gmt 0)

5+ Year Member



lavazza

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

10:25 pm on Dec 18, 2007 (gmt 0)

5+ Year Member



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!?!?

5:59 pm on Dec 19, 2007 (gmt 0)

5+ Year Member



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

6:59 pm on Dec 19, 2007 (gmt 0)

5+ Year Member



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!

3:58 pm on Dec 20, 2007 (gmt 0)

5+ Year Member



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.
6:41 am on Dec 21, 2007 (gmt 0)

5+ Year Member




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

11:02 pm on Jan 3, 2008 (gmt 0)

5+ Year Member



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?