Sunday, September 17, 2006

Showing favorite Blogs in new window

An easy to implement hack to let links show up in a new window.

I found this simple hack at Vivek's blog a few days ago.

If you have a 'Links'-widget in your sidebar, clicking a link will show the linked-to webpage or blog in the same window, replacing your blog.

If you add target='_blank' in the widget (see below, in red) the linked-to webpage or blog will open in a new window.

<b:widget id='LinkList1' locked='false' title='Blogs of Note' type='LinkList'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<div id='link'>
<b:loop values='data:links' var='link'>
<li><a expr:href='' target='_blank'><></a></li>
<b:include name='quickedit'/>