Help... Using a link to open a new window an iframe...
Moderators: egami, macek, gesf
- WiZARD
- Moderator
- Posts: 1240
- Joined: Thu Jun 20, 2002 10:14 pm
- Location: Ukraine, Crimea, Simferopol
- Contact:
If you want to open new window in link (<A HREF...) need set TARGET....
Example:
<A HREF="http://www.google.com" target="_blank">Google</A>
Example:
<A HREF="http://www.google.com" target="_blank">Google</A>
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";


- ruturajv
- php-forum Super User
- Posts: 1279
- Joined: Sat Mar 22, 2003 9:42 am
- Location: Mumbai, India
- Contact:
there I'm posting this for the 3rd time

Code: Select all
<iframe src="default.php" id="idname">
</iframe>
<script type="text/javascript">
function changeurl(url)
{
d = document.getElementById("idname");
d.src = url;
}
</script>
<a href="javascript: changeurl('someurl')">Change url</a>
- ruturajv
- php-forum Super User
- Posts: 1279
- Joined: Sat Mar 22, 2003 9:42 am
- Location: Mumbai, India
- Contact:
keep the iframe in a place where there is a major space... main content area
and put the navigation links...
in the navigation links, use the links using javascript to change the source of your (song page | title | album ) or what ever you want..
:-D
and put the navigation links...
in the navigation links, use the links using javascript to change the source of your (song page | title | album ) or what ever you want..
:-D