Hey All! this is what I got-
"parent.window.top2.location.href='a.html';"
(the code is in the main page along side the frames declerations)
there are 2 other ways to code it:
"parent.window.top2.location.href='a.html';"
-or-
"window.top2.location.href='a.html';"
-or-
"top2.location.href='a.html';"
all of these 3 lines work fine on my IE6. I search the net and found no answer as for which coding type of the 3 works best with all browsers and versions!!!!!!!!!
WHICH 1 of the 3 works best??????? and y?
Thx (the code in action is below)
***********************************************************
<html>
<head>
<script language="javascript">
function ccc()
{
parent.window.top2.location.href='a.html';
parent.window.top1.location.href='b.html';
}
</script>
</head>
<frameset rows="55px,24px,*" cols="*" frameborder="no" >
**********************
*here are some frames*
**********************
</frameset>
<noframes><body>
</body></noframes>
</html>
**********************************************************
"parent.window.top2.location.href='a.html';"
(the code is in the main page along side the frames declerations)
there are 2 other ways to code it:
"parent.window.top2.location.href='a.html';"
-or-
"window.top2.location.href='a.html';"
-or-
"top2.location.href='a.html';"
all of these 3 lines work fine on my IE6. I search the net and found no answer as for which coding type of the 3 works best with all browsers and versions!!!!!!!!!
WHICH 1 of the 3 works best??????? and y?
Thx (the code in action is below)
***********************************************************
<html>
<head>
<script language="javascript">
function ccc()
{
parent.window.top2.location.href='a.html';
parent.window.top1.location.href='b.html';
}
</script>
</head>
<frameset rows="55px,24px,*" cols="*" frameborder="no" >
**********************
*here are some frames*
**********************
</frameset>
<noframes><body>
</body></noframes>
</html>
**********************************************************