My onkeydown doenst work in a framed webpage
Posted on 2009-04-17
I have a window which will not recognise a onkeypressed event every time.
It seems maybe to be related to not having focus (in the right areas) or something when it opens.
My windows is filled with dynamic content in different frames & iframes.
I have now tried to put an alert() into all BODY-tags in all the (i)frames, in order to try find the problem.
But when the window opens the first time, its like NONE of the (i)frames are having focus or something, because NO alert-boxes pop up, before I explicit push left mouse key into one of the (i)frames and THEN press a key, e.g. [backspace] which is actually what I want to prevent from being possible in the whole window and (i)frames.