Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by karthik on Sep 29, 2007 08:22
open dhtmlx forum
Clear the clipboard in firefox

i would like to clear the clipboard in firefox

window.clipboardData.setData(Text,''); This syntax only works in IE. Not in Firefox. Can u provide any otherway to slove this problem.

Answer posted on Oct 01, 2007 10:24
By default "clipboardData" available only in IE, FF doesn't provide such interface.
Latest dhtmlxGrid_nxml.js file (from dhtmlxGrid 1.4) creates wrapper with the same name and methods for FF, so you can use such functionality with it.


window.clipboardData.setData("Text",'');