Forum Moderators: open
Anyone have any suggestion?
JS In the Head section of Page:
function WriteHeader(){
problem.document.write('<html><head><link href="math.css" rel="stylesheet" type="text/css"></head><body>');
}
function WriteContent() {
problem.document.write("this is content");
}
function WriteFooter(){
problem.document.write("</body></html>");
}
function ClearFrame() {
problem.document.open();
problem.document.clear();
}
function CloseFrame() {
problem.document.close();
}
----
the Iframe:
<iframe src="defaultframe.html" id="problem" name="problem" frameborder="1" marginwidth="10" marginheight="10" scrolling="no" align="top" height="200" width="500"></iframe>
---
JS in body
ClearFrame();
WriteHeader();
WriteContent();
WriteFooter();
CloseFrame();
---
I take it that no one has any idea how to help me with this problem.
What I want to do is open write to the Iframe, wait for user input and then depending on that input, write something new to the iframe.
Any suggestions at all?