How to copy text from a particular website that has some security stopping you.

There is a website that I am trying to copy text from, however there appears to be security that is stopping me.

Any suggestions how to copy the text (besides looking at the source)? I tried "no script" for firefox, but that doesnt help.

A sample of the website is:
http://www.roomsandthings.com/North-Shore-Rectangular-Dining-Room-Set-Millennium-D553-REC-FD-SET-p-101099.html?cPath=4884

I am trying to copy the text from the "description" section.
EEchinwanAsked:
Who is Participating?
 
imantasCommented:
Here's an even better one. Type this into address bar and you will be able to copy any text in the page:

javascript:(function() { var tds = document.getElementsByTagName('td'); for (var i = 0; i < tds.length; i++) { tds[i].onselectstart = function() {}; }  })();

Open in new window


Some of tables in the page has onselectstart="return false" which doesn't let you select text.
0
 
imantasCommented:
Please provide some more details how you are trying to copy it. Security error may be thrown because you try to copy it from another window or frame.
0
 
EEchinwanAuthor Commented:
No security error. It does not allow you to select the text to copy.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
imantasCommented:
Could you please provide a snippet which should be intended to copy the text?
0
 
EEchinwanAuthor Commented:
I am trying to copy from the Description section. If you scroll down on the page it is right below the "Add to cart".
0
 
Brian GeeCommented:
I saved the HTML output and then opened it with Word and then was able to copy the content fine... as a way of bypassing the 'security' implemented on this page...
0
 
imantasCommented:
Enter this into address bar of your browser:
javascript:(function() { var h4s = document.getElementsByTagName('h4'); for (var i = 0; i < h4s.length; i++) { if (String(h4s[i].innerText).match(/Description/)) prompt('', h4s[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('div')[1].innerText); } })();

Open in new window


I'm not sure if it will work on the pages of other products, but it's worth a try. You'll get a box with description that you can easily copy.
0
 
EEchinwanAuthor Commented:
With which browser does that work with? I just tried it in ie8 and it said 404.

Thanks
0
 
imantasCommented:
Did you copy the whole part? Maybe you have missed some letter in the beginning? It must start with "javascript:"
0
 
imantasCommented:
By the way, I have also tried it with IE8. It worked for me.
0
 
EEchinwanAuthor Commented:
It works for me in chrome. I dont know why not in ie8.

But thank you anyway.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.