Input field inside iframe

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

0


a source to share


3 answers


tell me which browser you tested with.



I'm assuming you have out of bounds focus? is there a script focusing on a document containing a ths input field in an iframe?

0


a source


i can't even raise the same event. I click BackSpace in the iframe, I click BackSpace in the entry, I click BackSpace in the main page. What browser are you working with? Is there javascript code on the page?



0


a source


This is the behavior of the old browser. Refresh your browsers. In the worst case, you can block the default events on the input element using the jS library to get a single response to browser events.

0


a source







All Articles