View Single Post
  #1 (permalink)  
Old December 7th, 2003, 12:29 AM
hosefo81 hosefo81 is offline
Authorized User
 
Join Date: Oct 2003
Location: KL, wilayah persekutuan, Malaysia.
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default links to a page when a button is clicked

How can i make the requested page loads in when the user presses a button?
My problem is in frame1.html where i want make links in frame.html target another frame.
In frame1, the first and second links(using image and hyperlinks) are successfully loaded in but the third link (using button)can't.
Below are my code. Please correct my code.

//frame.html
<html>
<head>
<title>Frame Example</title>
</head>
<form name="form2">
<frameset cols="15%, *">
<frame Src="frame1.html" Name="frame1">
<frame Src="frame2.html" Name="frame2">
</frameset>
</form>
</html>

//frame1.html
<html>
<head>
<style type="text/css">
#butprod { position:absolute; left:10px; top:10px; width:100px; height:30px; background:antiquewhite; cursor:hand;}
#butprod2 { position:absolute; left:10px; top:50px; width:100px; height:30px; background:antiquewhite; cursor:hand;}
#butprod3 { position:absolute; left:10px; top:90px; width:100px; height:30px; background:antiquewhite; cursor:hand;}
</style>
</head>
<body>
<form name="form1">
<a href="frame2.html" target="frame2">Sales by Product</a><br><br>
<a href="frame3.html" target="frame2"><img src="free88.gif"></a><br><br>
<a href="frame4.html" target="frame2"><input type="button" value="Sales by Customer"></a><br><br>
</form>
</body>
</html>


Reply With Quote