Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Copy Text of Web Page Using Javascript?
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 2nd November 07:59
vik rubenfeld
External User
 
Posts: 1
Default Copy Text of Web Page Using Javascript?



(Disclaimer: I know nothing about Javascript). As many here probably
know, there's a web service called Furl that lets you copy the text of a
site and store it for later search and retrieval.

They provide a Javascript that can be saved as a bookmark in your web
browser. The javascript calls a Furl pop-up window and saves the URL of
whatever page you are on. But it doesn't automatically save the text of
the site to Furl. Doing that adds several extra steps.

Is it possible to enhance this Javascript so that it first does a select
all, and then a copy, on the text of whatever web page you are on?

Here's the javascript:


javascript:d=document;t=d.selection?(d.selection.t ype!='None'?d.selection
..createRange().text:'')d.getSelection?d.getSele ction():'');void(furlit=
window.open('http://www.furl.net/storeIt.jsp?t='+escape(d.title)+'&u='+es
cape(d.location.href)+'&c='+escape(t),'furlit','sc rollbars=no,width=475,h
eight=575,left=75,top=20,status=no,resizable=yes') );furlit.focus();


Thanks in advance to all for any info.
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666