i downloaded an text editor from
http://www.hscripts.com/scripts/JavaScript/richtexteditor.php
it works well for me..
when the user types the text and modify it using the editor i need to display it in an preview section automatically..
the scripts uses iframe to work in the editor.,
i ve shown the preview by using an preview button and using the code below
Expand|Select|Wrap|Line Numbers
- function showpreview()
- {
- var myIFrame = document.getElementById("content");
- var content = myIFrame.contentWindow.document.body.innerHTML;
- document.getElementById("previewsection").innerHTML=content;
- }
but i need to display it automatically without using any preview button like
using an KEYUP event..
is there a way...
regards
vijay.