SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot ant1832's Avatar
    Join Date
    Apr 2002
    Location
    Tucson, AZ
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy Form data to clipboard on submit

    Is there an easy way for me to copy form data to the clipboard when a user clicks submit?

    I don't want the field names...just the field values. I would prefer to have each field value on its own line.

    Thanks in advance for help with this.
    Anthony

  2. #2
    SitePoint Zealot ant1832's Avatar
    Join Date
    Apr 2002
    Location
    Tucson, AZ
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found it in another thread

    Code:
    function copytoClipboard() { window.clipboardData.setData("Text",document.forms.form.field.value); }
    Last edited by ant1832; May 8, 2003 at 11:18.
    Anthony


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
  •