Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. (function( $ ) {
  2. $.fn.myPlugin = function() {
  3. var defaults = {
  4. width: 800,
  5. height: 700,
  6. scrollbars: 1,
  7. location: 1,
  8. status: 1
  9. },
  10. self = this,
  11. opts = $.extend(defaults, options);
  12. this.filter('a').click(function() {
  13. $("a").attr("target","_self");
  14. window.open($(this).attr('href'),'title', opts);
  15. return this;
  16. });
  17. };
  18.  
  19. }( jQuery ));
  20. $('a').myPlugin();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement