homerUK
11-29-2002, 12:39 PM
is there a way to set an "OnkeyPress" event to detect when the return or enter button is pressed, then to insert some text when it is?
I have an iFrame used for a WYSIWYG editor, but when the user presses "Return" it enters a <p> tag to the HTML... I want it to enter a <BR>...
So I thought that I could do some sort of JS which will detect when the enter is pressed and insert "<BR>" instead of <P>
any ideas?!
Thanks,
I have an iFrame used for a WYSIWYG editor, but when the user presses "Return" it enters a <p> tag to the HTML... I want it to enter a <BR>...
So I thought that I could do some sort of JS which will detect when the enter is pressed and insert "<BR>" instead of <P>
any ideas?!
Thanks,