Anchor Tag | Forum

Topic location: Forum home » General » General Chat
CHANDAN KUMAR
CHANDAN KUMAR Oct 3 '16
How to open a link in new tab or new window?

Solution: 

This is an example to open a link new tab:


<a href="http://www.cotocus.com/" target="_blank"> Cotocus</a>


This is an example to open a link in new window :


<a href="print.html"  onclick="window.open('print.html', 'newwindow', 'width=300, height=250'); return false;"> Print</a>

The Forum post is edited by CHANDAN KUMAR Oct 8 '16