Jump to content

Archived

This topic is now archived and is closed to further replies.

arielmedel

how to name a target

Recommended Posts

I have this code:

<body>

<div class="menu"><?php @ include ("menu.php"); ?>
</div>
<div class="body">your content goes here<?php @ include ("page.php"); ?>
</div>

</body>

I want the buttons in the menu to load different content in "body" without changing the top part which is "menu"

I was told I had to specify the target

<a href="#" target"framename">your image here</a>

What I don't know now is how to name the div?

Should I do it like this?:
<div class="body" name="body"><?php @ include ("page.php"); ?>
</div>

Or how do I name that div so it become sthe target?

Share this post


Link to post
Share on other sites
target is used in html to specify whether a new window, or the same window.
Here are the things you can use with the target attribute.,


target  _blank
_parent
_self
_top

Where to open the target URL.

    * _blank - the target URL will open in a new window
    * _self - the target URL will open in the same frame as it was clicked
    * _parent - the target URL will open in the parent frameset
    * _top - the target URL will open in the full body of the window

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.