Tutorial :Input Box inside an iframe


I have an input box inside and iframe. If i type and press the back key to erase the text, the back key event is taken as browser back and goes to the previous page. What could be the cause.?


please tell which browser you have tested with.

My guess would be that you have focus outside the field? is there a script putting focus on the document containing ths input box in the iframe?


i even cann't raise same event. I press BackSpace in iframe, I press BackSpace in input, I press BackSpace in main page. Which browser do you work with? Is there any javascript code in the page?


This is such an old browser behaviour. Update your browsers. In worst case scenario you can block the default events for the input element, using a jS library to get a unified response en browser events.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »