PDA

View Full Version : determining contenteditable on iframe



rizlaa
01-19-2007, 03:58 PM
I am using the folowing link
http://www.dynamicdrive.com/forums/archive/index.php/t-11419.html

to disable the backspace button from going back one page in the history when focus is on a non-editable iframe.

I need to be able to determine if the iframe in focus is editable. The contenteditable for each of the iframes is returning 'inherit' when some are editable and some are not.

is there a way of determining this so that the onkeypress event handler only prevents keycode 8 for non-editable iframes.

djr33
01-19-2007, 06:03 PM
I can't give you specific info for how to do this, but I will note that it isn't possible to fully control a browser feature such as something to do with navigation, etc., like the backspace button. The browser and whether javascript is or is not enabled will control this. (It may be quite possible in IE, FF, and perhaps others, but it won't cover everything.)