SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Javascript Copy All
-
Aug 28, 2007, 07:11 #1
- Join Date
- Aug 2007
- Posts
- 15
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Javascript Copy All
I was wondering if there is a way to have a link or button on my page that would copy everything on that page just by clicking it.
Thanks for any help!
-
Aug 28, 2007, 07:51 #2
- Join Date
- Apr 2006
- Posts
- 802
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
All browsers have edit menus, including the copy command.
To copy the entire page-
Edit-select all
Edit-copy
Most browsers also have a right-click context menu with the same commands.
-
Aug 28, 2007, 08:01 #3
- Join Date
- Aug 2007
- Posts
- 15
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I want a button on my web page that copies all of the text on that web page using javascript. The page I am working on does not have an edit menu, and it takes too much effort for the user to right click and select all, and copy the text. I know short cut keys, I know how to do this function without the use of javascript, but my users might not. I am trying to make it easy for them to copy the entire page of my site and paste it in their favorite text editor to save it for later.
Bookmarks