Skip to content Skip to sidebar Skip to footer

Copy HTML Table In Rich Text On Click

I want to copy the HTML table from my page as rich text to clipboard and be ready to paste the contents in excel on a single click. I found a awesome code in Stackoverflow Select

Solution 1:

Because a browser is a sand-boxed environment is usually rendered impossible by most browsers (IE a known exception) to copy to the system's clipboard, which is what you want without the aid of flash. You can use ZeroClipboard to aid in this if you still want to copy. Otherwise I suggest instructing users to press Ctrl+C to copy.

See this related post: HTML5 alternative to flash-based ZeroClipboard for safe copying of data to clipboard?.


Post a Comment for "Copy HTML Table In Rich Text On Click"