Website Toubles

Ive got a website with 3 frames one top left and middle in the left one I have butten's and there linked but when I click on the butten it opens the page just in that little frame meaning contiues scrolling, Does anyone now how to make so when I click on a butten it opens the new page not in a frame or in another browser??


Cheers :)

I hope Ive made myself as cleer as I can.
 
the best way would be to do this in adobe golive 6 and then look at the source code, if you want to learn how it works.
here are a few tips:

if you want to open in a new window, tell

PHP:
target="_blank"
if you want to open in another frame of the frameset, you have to define names for every frame in the frameset and then define the target by specifying the frame name:

PHP:
target="name of frameset"
if you want to replace the whole frameset, then:

PHP:
target="top"
top means frameset (top of all frames, so to say)

if you want to open in the same frame then:

PHP:
target="_self"
 
As php say's, you need to make sure you name the frames as you create them.

If you use Dreamweaver - when you create the target for the button, you have a drop down menu, just select where you want it to open, using php's explanations
 
try this

PHP:
 <a target="mainframe" href="page1.html">
and for the frame

PHP:
<iframe width="600" height="340" src="index.htm" frameborder="0" name="mainframe"></iframe></td>
 
Last edited:
Top