arielmedel Posted October 17, 2006 Share Posted October 17, 2006 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 https://forums.phpfreaks.com/topic/24239-how-to-name-a-target/ Share on other sites More sharing options...
Ninjakreborn Posted October 17, 2006 Share Posted October 17, 2006 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 https://forums.phpfreaks.com/topic/24239-how-to-name-a-target/#findComment-110198 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.