Svarga
Moderator | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Я как-то баловался по этому поводу: Код: if (navigator.userAgent.indexOf('MSIE')>-1) { alert('Скопируйте какой-н кусок текста в ClipBoard и нажмите ок'); document.write('<br><br><br>especially for IE users-- your clipboard data is:<br><br>----begin data-----<pre>'+window.clipboardData.getData('Text')+'</pre>------end data-----<br><br>check your clipboard now!<br>'); window.clipboardData.setData('Text','вот и нету ваших данных в буфере '); } | правда, если каспер стоит, то он завешивает окно эксплорера Добавлено Цитата: window.clipboardData Object Methods Method == Returns == Description clearData([format]) == Nothing == Removes data from the clipboard. If no format parameter is supplied, all data is cleared. Data formats can be one or more of the following strings: Text, URL, File, HTML, Image. getData(format) == String == Retrieves data of the specified format from the clipboard. The format is one of the following strings: Text, URL, File, HTML, Image. The clipboard is not emptied when you get the data, so that the data can be retrieved in several sequential operations. setData(format, data) == Boolean == Stores string data in the clipboard. The format is one of the following strings: Text, URL, File, HTML, Image. For non-text data formats, the data must be a string that specifies the path or URL to the content. Returns true if the transfer to the clipboard is successful. |
| Всего записей: 4161 | Зарегистр. 25-06-2002 | Отправлено: 23:29 01-10-2002 | Исправлено: Svarga, 08:50 28-09-2003 |
|