What is really in my clipboard? How does it interact with a webpage?

When I copy some content on a web page, what really happens? What will be saved to the clipboard?

I once thought it was a plant of text, however I can paste its style or images into M$ Wordor some WYSIWYG web editors such as TinyMCE. And this is not html code, otherwise I will see tags in geditor Notepad.

My main questions are:

  • where is the document that explains clipboard knowledge?
  • When I make web pages, is it possible to control what users will copy to the clipboard using javascript?
+5
source share
5 answers

Background

Windows MIME; HTML. , Notepad, , , Word, MIME HTML-, .

GUI , , .

1. , Windows?

.

2. -, , javascript?

; , " ".

+4

Windows ( , ) . , Word, , , . , , . , "", , ; , , . , , HTML- , , , .

, ?

Windows ( , , ), , .NET Clipboard class , IDataObject.

JavaScript . , .

-, , javascript?

, ( API), JavaScript; , ( , ).

+5

JUST Javascript ( - . http://www.w3.org/TR/clipboard-apis/).

ZeroClipboard, ( Flash Javascript-). . http://code.google.com/p/zeroclipboard/

+2

() html.

, -.

, html excel.

0

All Articles