Hi all,
I'm trying to get the latest URL that a user visited in the frame.
But it just doesn't work.
function setURL() {
//document.cc.fm. URL.value=docum ent.main.locati on.href;
alert("onLoad") ;
alert("Page "+document.fram es[0].location.href+ " is loaded");
}
......
<FRAMESET rows="*,40%" >
<FRAME src="about:blan k" name="main" onChange="setUR L();">
<FRAME src="cc.html" name="cc">
What's the problem?
I'm trying to get the latest URL that a user visited in the frame.
But it just doesn't work.
function setURL() {
//document.cc.fm. URL.value=docum ent.main.locati on.href;
alert("onLoad") ;
alert("Page "+document.fram es[0].location.href+ " is loaded");
}
......
<FRAMESET rows="*,40%" >
<FRAME src="about:blan k" name="main" onChange="setUR L();">
<FRAME src="cc.html" name="cc">
What's the problem?
Comment