Hi,
I required a code so that i can access clipboard data through javascript in firefox
Try the code given below
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<script type=”text/javascript” language=”javascript”>
function Paste()
{
var objDoc=document.createElement(“TextArea”);
objDoc.value=window.clipboardData.getData(“Text”);
window.clipboardData.setData(“Text”,objDoc.value);
objDoc=null;
}
</script>
</head>
<body>
<div onpaste=”Paste()” style=” height:200px; width:200px” id=”divLive” contentEditable>
ererrertwerwertewtweterererereerterert
erterte
ertert
ert
ewrterertew
wertwer
retewrewr
reertert
trert
wer
erer
</div>
</body>
</html>
save the above code in an html file and run it in IE it will work fine and you can paste any thing from word into the given div but the same code did not work in firefox
please help me to sort out this issue