locked
how to copy a string to the clipboard from markup? RRS feed

  • Question

  • User379720387 posted

    Using Webmatrix and Web Pages.

    Yes, I did search extensively, only found info on Windows Forms and crude jQuery contraptions.

    Monday, January 5, 2015 8:35 AM

Answers

  • User541108374 posted

    Hi,

    in simple html there's no such thing so you'll need to fall back to solutions which make use of javascript/jQuery or Flash or another third party solution.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 5, 2015 8:39 AM
  • User-821857111 posted

    You can't consistently rely on browsers' access to the Clipboard. The hacks you have found are probably as good as it gets, along with Flash-based options like ZeroClipboard (https://github.com/zeroclipboard/zeroclipboard)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 5, 2015 8:44 AM

All replies

  • User541108374 posted

    Hi,

    in simple html there's no such thing so you'll need to fall back to solutions which make use of javascript/jQuery or Flash or another third party solution.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 5, 2015 8:39 AM
  • User-821857111 posted

    You can't consistently rely on browsers' access to the Clipboard. The hacks you have found are probably as good as it gets, along with Flash-based options like ZeroClipboard (https://github.com/zeroclipboard/zeroclipboard)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 5, 2015 8:44 AM