
Originally Posted by
djr33
Hmm, well, it seems to work, but there are two problems:
1. It reloads the page, causing all of the text we just entered to go away. Although in some browsers the "back" button can help us to go back and retrieve that text, that won't always work. This is very inconvenient. Many editors like this use iframes so the preview and code are independent. I think that's important.
2. You have at least one syntax error (I didn't notice any others)-- in JS, comments are marked by //comment, not like HTML <!--comments-->. So within the JS block, you need to use JS comments, rather than the HTML comment that you have now.
I knew I messed that up :P
Thank you for corrections.
And I had it in an iFrame on the page, but for some reason Medianewsonline deleted it.
If you want to add an iframe, I would recommend doing iframeBorder="0" scrolling="no" to an iframe.
Code:
<iframe src="wpt1.html" iframeBorder="0" scrolling="no" style="height: --px; width: --px;">Your browser doesn't support iFrames.</iframe>

As for the back button and all that, I have absolutely no idea whatsoever on how to make it remember all the next inputted.
It's a simple script as said.
@jscheuer1 Try the TXT file and save it as an html.
Bookmarks