SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    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!

  2. #2
    SitePoint Guru
    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.

  3. #3
    SitePoint Member
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •