jQuery Plugin To Open External Links In New Window - ExternalLinking
File Size: | 3.52 KB |
---|---|
Views Total: | 458 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
Yet another jQuery plugin which allows to open all the external links on your current page in a new window or tab, by automatically adding 'target=_blank' attribute to external links of your web page.
How to use it:
1. Include the latest version of jQuery library on your web page.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
2. Include the jQuery ExternalLinking script after jQuery library and call the plugin like this.
<script type="text/javascript" src="includes/jquery.external-linking.js"></script> <script type="text/javascript"> $(document).ready(function() { $(document).externalLinking(); }); </script>
This awesome jQuery plugin is developed by zombiept2. For more Advanced Usages, please check the demo page or visit the official website.