J
Jeff
I have this code my index file:
<IFRAME src="main.html" width="550" height="100%" id="main" name="main"
height="auto"
scrolling="no" frameborder="1">
</IFRAME>
***************************************************************
I have this code in a html-page opened in a iframe in index: (demo.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
<script type="text/javascript" language="JavaScript">
function testFunc(href) {
frames['main'].location.href = 'href';
}
</script>
</head>
<BODY BGColor="white">
<a href="javascript:testFunc('debug.html')">Test of iframe</A>
</BODY>
</html>
The index file can open through javascript html-pages and put them in
iframes defined in the index-page
My problem is that testFunc doesn't open the debug.html page....
Can the reason for this be that the iframe is defined in the index file and
demo.html doesn't know about them?
Jeff
<IFRAME src="main.html" width="550" height="100%" id="main" name="main"
height="auto"
scrolling="no" frameborder="1">
</IFRAME>
***************************************************************
I have this code in a html-page opened in a iframe in index: (demo.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
<script type="text/javascript" language="JavaScript">
function testFunc(href) {
frames['main'].location.href = 'href';
}
</script>
</head>
<BODY BGColor="white">
<a href="javascript:testFunc('debug.html')">Test of iframe</A>
</BODY>
</html>
The index file can open through javascript html-pages and put them in
iframes defined in the index-page
My problem is that testFunc doesn't open the debug.html page....
Can the reason for this be that the iframe is defined in the index file and
demo.html doesn't know about them?
Jeff