Hi there,
first sorry for my senseless subjects, but I'm not able to explain this problem in a few words.
What I want to do:
I'm trying to code a little javasript-based html-editor.
So there is a big text-field where the User can enter his code. What I want is a preview of the html-code the User entered.
For example:
The user types in his Editor-box <b>test</b>, then I want to have another text-box (or iframe or whatever), where the user can the now a bold "test"-word.
I tried it this way:
onClick="javascript: document.getElementById('preview-box').value=document.getElementById('input-box').value"
But this way in the preview-box gets just the same text as the input-box, in my example <b>test></b> instead of the interpreted bold "test"-word.
Sorry for my strange english, I can't write that good, but I hope you can understand me anyway ^^
thx a lot,
greets ben
first sorry for my senseless subjects, but I'm not able to explain this problem in a few words.
What I want to do:
I'm trying to code a little javasript-based html-editor.
So there is a big text-field where the User can enter his code. What I want is a preview of the html-code the User entered.
For example:
The user types in his Editor-box <b>test</b>, then I want to have another text-box (or iframe or whatever), where the user can the now a bold "test"-word.
I tried it this way:
onClick="javascript: document.getElementById('preview-box').value=document.getElementById('input-box').value"
But this way in the preview-box gets just the same text as the input-box, in my example <b>test></b> instead of the interpreted bold "test"-word.
Sorry for my strange english, I can't write that good, but I hope you can understand me anyway ^^
thx a lot,
greets ben