Jump to content

[SOLVED] iframe links and php


redarrow

Recommended Posts

Advance thank you.

 

 

goes like this

 

iframe pulls the page in.

 

the page it pulling in has links.

 

need to get those links to work so the iframe dosent add it to it own page.

<?php
echo"<center><iframe STYLE='
background-color: #3366ff;
scrollbar-base-color:#3366ff;
scrollbar-face-color:#3366ff;
scrollbar-arrow-color:#3366ff;'
src='show_profile_on_podcast_page.php' target='_top' width='200px' height='190'>
  <p>Your browser does not support iframes.</p>
</iframe></center>";
?>

 

 

 

 

 

 

Link to comment
Share on other sites

What you want to do is to name your iframe.

 

<?php
echo"<center><iframe name="TheIFrameNameGoesHere" STYLE='
background-color: #3366ff;
scrollbar-base-color:#3366ff;
scrollbar-face-color:#3366ff;
scrollbar-arrow-color:#3366ff;'
src='show_profile_on_podcast_page.php' target='_top' width='200px' height='190'>
  <p>Your browser does not support iframes.</p>
</iframe></center>";
?>
</iframe>

 

If you have a link inside the iframe on the iframe's main page, your link would look like this.

 

<a target="TheIFrameNameGoesHere" href="yourlinkhere.php">Testing</a>

 

Hope this helps ;)

 

Edit: Oops you want on the outside of the iFrame? :P

 

_Parent should work.

 

<a target="_parent" href="yourlinkhere.php">Testing</a>

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.