Site Utilities
New Window Link 
- Class name: (k-new-window)
- Version: 1.0
-
jQuery Interactive feature
You may add the "k-new-window" class to links that you wish to be opened in a new window or browser tab.
HTML5 Plain Code
-
<a href="http://get.adobe.com/fr/reader/" class="k-new-window" title="Opens in a new window or tab">Adobe Reader</a>
CSS Code
-
a.k-new-window, a.k-new-window:link {
-
color: #000;
-
background: transparent url(../img/k-theme0/pic_newwindow.gif) right no-repeat;
-
padding-right: 13px;
-
}
How to apply
-
(function($){
-
'use strict';
-
/* You may pass the target name as a variable / defaults to "_blank" */
-
function openNewWindow(windowName) {
-
$('a.k-new-window').click(function(){
-
var zeName = (windowName) ? windowName : '_blank';
-
var zeTarget = $(this).attr('href');
-
window.open(zeTarget, zeName);
-
return false;
-
});
-
}
-
$(document).ready(function(){
-
openNewWindow();
-
});
-
})(jQuery);
IE Backward Compatibility
In order to correct display bugs for Internet Explorer versions prior to 9, your html pages need to call the following file by Conditional Comments: