Help... Using a link to open a new window an iframe...

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
You can't do this with HTML alone, but you could do it with PHP.
 
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>
 
there I'm posting this for the 3rd time :D

Code:
<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>
 
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
 
Back
Top