Rakesh
Rakesh

Reputation: 5893

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.?

Upvotes: 0

Views: 415

Answers (3)

Elzo Valugi
Elzo Valugi

Reputation: 27876

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.

Upvotes: 0

Sergei Kovalenko
Sergei Kovalenko

Reputation: 1521

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?

Upvotes: 0

BerggreenDK
BerggreenDK

Reputation: 5004

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?

Upvotes: 0

Related Questions