Easy. Take the code and use
document.write(codeValue) to write it onto the webpage. Better yet, this code could be submitted in a form via PHP. It could then be echoed on the webpage via PHP and it won't involve any JavaScript. If you would like a
different kind of code generator, let us know which language (it probably can't be PHP or any compiled language...). If I've mistaken you, let me know. You may be wanting a generator that makes code on its own, and not be a 'code parser' or 'code generator' (which is how I say it) which takes programming code and, in a way, makes a program on its own.
Yes. Look it up on Google. "finding x y coordinates using javascript". I'm lazy, so I don't feel like coding anything right now.

Let me know if you would like me to code it for you. Then I would.
You could do this via a <div>, but if this is some sort of 'code parser' (as mentioned in answer 1), it is best accomplished in an <iframe> considering the fact that many browsers today classify a
window.open()'ed window is a 'popup'. You wouldn't want to use a <div> when using a 'parser' because it could interfere with other code on the page.
Any other questions? I know that question 1 may have thrown me off...

Bookmarks