Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function( $ ) {
- $.fn.myPlugin = function() {
- var defaults = {
- width: 800,
- height: 700,
- scrollbars: 1,
- location: 1,
- status: 1
- },
- self = this,
- opts = $.extend(defaults, options);
- this.filter('a').click(function() {
- $("a").attr("target","_self");
- window.open($(this).attr('href'),'title', opts);
- return this;
- });
- };
- }( jQuery ));
- $('a').myPlugin();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement