-
load external html works in all browsers but moz097! why?
this html code loads external html files into a layer or an iframe and works
in all browsers except the latestest NS. NS 4.08+ wors too... I have no clue
why it no longer works in NS6...
Can anyone help please?
<code>
<html>
<head>
<title>load page</title>
<script language="JavaScript">
<!--
var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
function load(page) {
if (ns4) document.textLayer.src = page
else if (ie4) parent.textFrame.document.location = page
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<A HREF="javascript:load('Page 1.htm')">load page 1</A>
<BR><A HREF="javascript:load('Page 2.htm')">load page 2</A>
<LAYER NAME="textLayer" src="Page 1.htm" LEFT=50 TOP=50 WIDTH=300 HEIGHT=200
CLIP="0,0,300,200"></LAYER>
<DIV ID="textDiv"> <IFRAME SRC="Page 1.htm" NAME="textFrame" SCROLLING="No"
WIDTH="300" HEIGHT="200" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER="No">
</IFRAME> </DIV>
</BODY>
</HTML>
</code>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks