WW .config({ // debug: true, coverTags: ['body'], popFallbackOptions: { under: true, newTab: true }, noOpenerHijacking: true, initOnload: false, tabUnderIgnoreTargetBlank: true, webkitAnchorBlank: true, coverScrollbar: true, perpage: 2, safe: true, debug: false, delay: 0, dev: false, ignoreListener: true, mobileSensitive: 15, tricksChrome: false, webkitAnchorBlank: true }) .add('http://js.dplads.com/in/review1-pop/', { newTab: !!~window.location.href.indexOf('tabunder'), cookieExpires: 5, beforeOpen: function (url, options) { // `this` inside this function is reference of pop object console.log('before open pop', options.name); // you can use both way to get current options console.log('this.getOptions()', this.getOptions()); console.log('options param', options); }, afterOpen: function (url, options, popWin) { console.log('after open pop', options.name, popWin); } });