solarwind2424
03-12-2005, 08:07 PM
i know how to use button links...
this is how...
<html>
<HEAD>
<script type="javascript">
function goToURL()
{
window.location = "http://www.codingforums.com";
}
</script>
</HEAD>
<BODY>
<form>
<input type=button value="CODING FORUMS" onClick="goToURL()">
</form>
</body>
</html>
...BUT, how do you use a button link to link to a specific frame in a webpage
this is my frameset and index file:
index.html
frametop.html
frameleft.html
mainframe.html
index is the file which holds the frames in a frameset
there are 3 frames in index.html
one at the top,
one at the bottom, which is split into two frames.
so how do i use a button link to ... lets say... link to www.codingforums.com, but so that the target is "mainframe.html"?
--any help is appreciated, thankyou!
this is how...
<html>
<HEAD>
<script type="javascript">
function goToURL()
{
window.location = "http://www.codingforums.com";
}
</script>
</HEAD>
<BODY>
<form>
<input type=button value="CODING FORUMS" onClick="goToURL()">
</form>
</body>
</html>
...BUT, how do you use a button link to link to a specific frame in a webpage
this is my frameset and index file:
index.html
frametop.html
frameleft.html
mainframe.html
index is the file which holds the frames in a frameset
there are 3 frames in index.html
one at the top,
one at the bottom, which is split into two frames.
so how do i use a button link to ... lets say... link to www.codingforums.com, but so that the target is "mainframe.html"?
--any help is appreciated, thankyou!