How to open a new window with target="blank"

Status
Not open for further replies.
3 comments
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>

if you click the title it will open in the new tab
 
Last edited:
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="http://google.com" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>


If I click now it will open + a new window with google additionally?

Also I want to click on the video there should happen

Opening the video + a new window (tab) to google.com
 
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" onclick="window.open('http://www.google.com', '', 'width=auto,height=auto')" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>

wrap the video using anchor tag

post your website so it easier to help you.
 
Status
Not open for further replies.
Back
Top