CODEDIGEST InstallShield
Home Articles CodeDigest Tutorials InstallShield FAQs
Skip Navigation LinksHome » CodeDigest » Open all Hyperlinks in a Page in Separate Window using jQuery   You are not logged in.
Search
 

Sponsors
InstallShield
 

Sponsored Links
 

Technologies
 

CodeDigest Navigation
 

Technology News
No News Feeds available at this time.
 

Community News
No News Feeds available at this time.
 
Open all Hyperlinks in a Page in Separate Window using jQuery
Open all Hyperlinks in a Page in Separate Window using jQuery
Submitted By Satheesh Babu
On 8/27/2009 10:00:07 AM
Tags: CodeDigest,jQuery  

Open all Hyperlinks in a Page in Separate Window using jQuery

This is a simple but very powerful script which will prove the jQuery library's ability. The following script will make all the hyperlinks in the page bolder and add opens the link in new window if clicked.


<script src="../_scripts/jquery-1[1].3.2.js" type="text/javascript"></script>
<script language="javascript">
$(function() {
$('A').css('font-weight', 'bold').attr('target', '_blank');
});
</script>

Do you have a working code that can be used by anyone? Submit it here. It may help someone in the community!!