In Firefox (at least) JavaScript copy and paste features are disabled by default. Is there anyway to check if functionality is available, so I can hide some buttons if it is not?
Tested in IE8, FF3.6.10, Chrome 3.0.195. Safari 4.0:
if(typeof(window.clipboardData)=="undefined") { alert("not working") } else { alert("working") }
Source: https://habr.com/ru/post/1761105/More articles:What / How does an animation with a close aperture of UIImagePickerController start? - iphoneHow to make screen capture on a web page / combine 2 images - javascriptConvert Objective-C code to C ++ to determine user downtime in OS X - c ++: dependent =>: destroy does not call the destroy method before deleting? - ruby-on-railsjQuery: using css selector to compare position values? - jqueryGrouping related constants between classes - javaOrientation Javascript does not work with PhoneGap on iPad - javascriptWorking with iPad orientation in javascript - javascriptGet one accelerometer value - androidHow do you format a date range in Java? - javaAll Articles