JackTheRussel
Programmer
Hi.
I have page where I have two frames
index.html
How can I find out in upframe.html, what is the location.href in downframe ?
I have tried solution like this:
MyUp.html
But this isn't workin.
I just get: downframe is not defined ?
I haven't use js much and I'm totally lost.
Can someone guide me?
I have page where I have two frames
index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html>
<head><title>My Frames</title>
</head>
<frameset rows="40%,60%">
<frame src="myUp.html" name="upframe">
<frame src="MyDown.html" name="downframe">
</frameset>
</html>
How can I find out in upframe.html, what is the location.href in downframe ?
I have tried solution like this:
MyUp.html
Code:
<html>
<head>
<script type="text/javascript">
var protocol = downframe.location.protocol;
var url = downframe.location.href;
document.write("Downframe address is " + url + " and the protocol is " + protocol + ".");
</script>
</head>
</html>
But this isn't workin.
I just get: downframe is not defined ?
I haven't use js much and I'm totally lost.
Can someone guide me?