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

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Post by swirlee » Fri Jul 02, 2004 6:48 am

You can't do this with HTML alone, but you could do it with PHP.

User avatar
WiZARD
Moderator
Moderator
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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

Post by WiZARD » Sat Jul 03, 2004 1:43 am

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>

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » Sun Jul 04, 2004 8:15 pm

there I'm posting this for the 3rd time :D

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>

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » Thu Jul 08, 2004 8:26 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests