title: Redirect Url Is Not Working with Iframe
body: <p>What I Need:</p>
  
  <ul>
  <li>when user click on video url it must redirected to you video.</li>
  <li>we are using html5lightbox plugin .</li>
  </ul>
  
  <p>problem im facing:</p>
  
  <ul>
  <li>redirection is not working in iframe.</li>
  <li>though when i click on src of iframe it is redirected to you tube url.</li>
  </ul>
  
  <p>here is  html code</p>
  
  <pre><code>   &lt;div id="html5lightbox-web" style="display:block;width:500px;height:400px;"&gt;
  
       &lt;iframe width="500" height="400" src="http://t.co/hNLWmspb" frameborder="0"&gt;
  
          &lt;/iframe&gt;&lt;/div&gt;
  </code></pre>
  
  <ul>
  <li>i have tested on chrome its not auto redirected t particular page url.</li>
  </ul>
  
  <p>problem explanation</p>
  
  <ul>
  <li>when user click on image video should be opened .</li>
  </ul>
  
  <p>tweet data</p>
  
  <pre><code>    VW @ European Motor Show Brussels - Behind the scene (part 1): &amp;nbsp;&lt;a class="twtlnk" rel="nofollow" href="http://youtu.be/XzqagJTsNrc" target=\"_blank\"&gt;http://youtu.be/XzqagJTsNrc&lt;/a&gt;  via &amp;nbsp;&lt;a class="twthand" href="https://twitter.com/youtube" rel="nofollow" target=\"_blank\" &gt;@youtube&lt;/a&gt;
  </code></pre>
  
  <p>here is code snippet</p>
  
  <pre><code>                 $media_url;// http://t.co/hNLWmspb
  
  
  
  
                 $parsed = parse_url($media_url);
                  print_r($parsed);
  
                 Array ( [scheme] =&gt; http [host] =&gt; t.co [path] =&gt; /hNLWmspb 
  
                  $ytarray=explode("/", $media_url);
                  $ytendstring=end($ytarray);
                  $ytendarray=explode("?v=", $ytendstring);
                  $ytendstring=end($ytendarray);
                  $ytendarray=explode("&amp;", $ytendstring);
                  $ytcode=$ytendarray[0];
                  print_r($ytcode);
  
                  if(preg_match('/http:\/\/(www\.)*youtube\.com\/.*/',$parsed['path']))
                  {
                         // echo "YouTube URL found!\n";
                      $content='&lt;div class="4u"&gt;&lt;div class="box photo tile"&gt;
                   &lt;a href='.$media_url.' class="html5lightbox" data-group=""
                     titl="'.$tweet_content.'"&gt;';
                  }
  
                  else
                  {
                      $content='&lt;div class="4u"&gt;&lt;div class="box photo tile"&gt;
                      &lt;a href="http://www.youtube.com/embed/""'.$ytcode.' class="html5lightbox" data-group=""
                        titl="'.$tweet_content.'"&gt;';
                  }
  </code></pre>
  
  <ul>
  <li>i have taken help from <a href="https://stackoverflow.com/questions/412467/how-to-embed-youtube-videos-in-php">How to embed YouTube videos in PHP?</a>.</li>
  </ul>