also @ TechSpot: Mozilla developing Metro-specific Firefox for Windows 8
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Download Now:

iframe

Thread Tools Search this Thread
  #1  
Old 03-31-2005
Newcomer, in training
 
Member since: Mar 2005, 1 posts
iframe

How do clear the iframe in netscape 7.0 and Internet explorer. The following code works in IE but not in netscape

<html>
<head>
<title>Simple Math Practice</title>


<script language="javascript" type="text/javascript">
<!-- Hide Script
function RandPosInt() {
Rnum = Math.round(Math.random()*8+1);
return Rnum;
}

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();
}


// End Hiding Script -->
</script>


<link href="math.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<h1>Simple Math Practice</h1>

<iframe
src="defaultframe.html" id="problem" name="problem" frameborder="1" marginwidth="10" marginheight="10" scrolling="no" align="top" height="200" width="500">
</iframe>


<script language="javascript" type="text/javascript">
<!-- Hide Script
//FirstNum = RandPosInt();
//problem.document.write("Test1");
ClearFrame();
WriteHeader();
WriteContent();
WriteFooter();
CloseFrame();

// End Hiding Script -->
</script>

</div>
</body>
</html>
  #2  
Old 03-31-2005
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,165 posts
That function is no longer supported. See here:
http://www.web-developer-india.com/w...t/refp_77.html
Closed Thread

Similar Topics
Topic Replies Forum
Iframe virus wininit.exe suspected 2 Virus and Malware Removal
Iframe virus attack 1 Virus and Malware Removal
Web Design Question - iframe or alternative 6 Virus and Malware Removal
Hackers launch massive IFrame attack 1 Virus and Malware Removal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 08:27 PM.