T
tylersimon
Hi,
I am trying to get the current selected text from a document within a
frameset.
In Firefox all works well using getSelection.
In IE createRange is returning me a type of "None". After some
investigation it appears that the fact that this is in another frame
is critical. I am clicking on a custom button (it's a <div> with an
<img> in it) in another frame - just as I do this the selection is
lost. If I replace the custom button with an <input> button then the
selection is not lost.
Is there any way to trap the loss of the selection before it occurs? I
have tried onfocus and onblur in the frameset but these are too late.
Simon
I am trying to get the current selected text from a document within a
frameset.
In Firefox all works well using getSelection.
In IE createRange is returning me a type of "None". After some
investigation it appears that the fact that this is in another frame
is critical. I am clicking on a custom button (it's a <div> with an
<img> in it) in another frame - just as I do this the selection is
lost. If I replace the custom button with an <input> button then the
selection is not lost.
Is there any way to trap the loss of the selection before it occurs? I
have tried onfocus and onblur in the frameset but these are too late.
Simon