H
Hank Mishkoff
Is there any way to use JavaScript to determine how much
text will fit into a non-scrolling browser frame?
I have a non-scrolling frame in which I want to insert some
text. I know that the text is too large to fit entirely into
the frame, so I'd like to insert only the portion of the
text that will fit into the frame. Is there any way to use
JavaScript to do this?
(The text could be any font and any size, and the frame
could be any size as well, though not resizable.)
If so, my second task is to put the remaining text into a
second frame, which means that I not only want to insert
into the first frame only the text that fits, I need to know
exactly what text was put into the first frame, which will
allow me to identify the remaining text and put it into the
second frame.
Is any of this possible with JavaScript? If not, is there
*any* way to do this?
Thanks for your help!
text will fit into a non-scrolling browser frame?
I have a non-scrolling frame in which I want to insert some
text. I know that the text is too large to fit entirely into
the frame, so I'd like to insert only the portion of the
text that will fit into the frame. Is there any way to use
JavaScript to do this?
(The text could be any font and any size, and the frame
could be any size as well, though not resizable.)
If so, my second task is to put the remaining text into a
second frame, which means that I not only want to insert
into the first frame only the text that fits, I need to know
exactly what text was put into the first frame, which will
allow me to identify the remaining text and put it into the
second frame.
Is any of this possible with JavaScript? If not, is there
*any* way to do this?
Thanks for your help!