News Update :
Home » » Open links in a new tab or new window

Open links in a new tab or new window

By: Unknown on Thursday 22 January 2015 | 04:07

1. Open image or link in a new window / tab

To open a link or picture hepertext a new page or tab, you must add to the <a> tag attribute target = "_ blank". for example:

 

<a target="_blank"> href="http://blogger-astuce.blogspot.com/" tips blogger </a>
try this link to see the result tricks blogger


And to open an image in a new tab or new window, it follows the same procedure

 




<a target="_blank" href=http://blogger-astuce.blogspot.com/> <img src = "url-of-your-picture" /> </a>

click the image above to see the result.

2. Open links a widget in a new window / tab


There is also the option to open links widgets you use in a new tab or a new window. and to do this, follow these steps:
Connect to blogger, go to Presentation >> Edit HTML, check the "Develop widget templates" and search for a code similar to this:






<b:widget id='PageList1' locked='false' title='Le Nom de Votre Widget' type='PageList'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
 <div class='widget-content'>
   <ul>
     <b:loop values='data:links' var='link'>
       <li><a expr:href='data:link.target' target='_blank'><data:link.name/></a></li>
     </b:loop>
   </ul>
   <b:include name='quickedit'/>
 </div>
</b:includable>
</b:widget>



PageList1 ( you will find widgets with HTML instead of PageList1).

Add a target = "_ bank" as specified in this code.
That is all and thank you for following this article.

Post a Comment

 
Contact Us | Privacy policy | Term of use | Advertise with Us | Site map
Copyright © 2011. Blogging Brain . All Rights Reserved.
Design Template by Blogging Brain | | Powered by Blogger