Tuesday, August 30, 2005

Clipboard data available through Javascript and ASP

We do copy various data by ctrl+c for pasting
elsewhere. This copied data is stored in clipboard and
is accessible from the net by a combination of java-scripts and ASP.
This is achieved by a script like this ..

<Script Language="JavaScript">
var content = clipboardData.getData("Text");
if (content!=null) {
document.write(content);
else {document.write('<center>No text found in clipboard. This is a good thing!<br><br>Works with Internet Explorer and Netscape.');}
</Script>

Click the Link: http://www.sourcecodesworld.com/special/clipboard.asp
3) You will see the text you copied on the Screen
which was accessed by this web page.


Do not keep sensitive data (like passwords, creditcard
numbers, PIN etc.) in the clipboard while surfing the web. It is
extremely easy to extract the text stored in the clipboard to steal your sensitive information.