I'm working on some drag-n-drop javascript code for a web app, where the company requires all the users to be on Win XP, using IE 6 (so I don't care about cross-browser compatibility - lucky me!)
I've got the d-n-d code working, and I found code to use to turn off text selection while an object is being moved (which was just plain ugly.) However, I can't figure out how to turn text selection back ON after the object is dropped.
The code to stop the browser from selecting text is done like this:
-
document.onselectstart = new Function ("return false");
-
Is there a way for me to first save what document.onselectstart's function was set to? Like a getFunction(document.onselectstart)? OR, does someone know what the function is initially set to - or where I could find a reference that might have it?