Disable text/image selection in Facebook App
Posted: Wed Feb 10, 2010 4:00 am
I'm making a drag and drop script and I'm trying to disable text/image selection because when the user drags the item it selects text and images underneath. However facebook's JS sandbox doesn't support this format:
it only supports:
which doesn't seem to work.
Does anyone know a workaround for this?
Code: Select all
document.onselectstart = function() {return false} // ie
document.onmousedown = function() {return false} // mozillaCode: Select all
document.addEventListener('onselectstart ', function() {return false})Does anyone know a workaround for this?