Jump to content

how to name a target


arielmedel

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?
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.