GithubHelp home page GithubHelp logo

karlmonson / js-popunder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhtoan/js-popunder

0.0 0.0 0.0 9 KB

This Javascript class being used to make a popunder easier (avoid blocked by Google Chrome)

JavaScript 100.00%

js-popunder's Introduction

Javascript Popunder Maker

  • This Javascript class being used to make a popunder easier (avoid blocked by Google Chrome)
  • You can make multiple windows/tabs
  • Have more options for setting popunder

Note:

  • The popunders will open all at the same time with Firefox, IE But in Google Chrome, i have been try to avoid blocked by Chrome popunder-blocker therefore the popunders will be open in order clicked
  • Default: popunder work for session of browser, but you can change it by cookieExpires options

Options

Main Options

  • 'onNewTab' true or false default: true, this decide the popunder will open on newtab or new window
  • 'eventType' 1 or 2 - default: 1 (window onclick), 2 (document.body onclick)
  • 'cookieExpires' type float, day of cookie (if not set, popup will work by session), you can use 0.5 for 12 hours
  • 'alwaysPop' true or false - default: false, if true, refresh = new popunder

Other Options

There are all defaul options of popunder (if onNewTab = false)

  • width: window.screen.width,
  • height: window.screen.height,
  • left: 0,
  • top: 0,
  • location: 1,
  • tollbar: 1,
  • status: 1,
  • menubar: 1,
  • scrollbars: 1,
  • resizable: 1

Usage

<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
// make pop on new tab
Light.Popup.create('site1.com', {onNewTab: true});
// make pop on new window with size 100x100
Light.Popup.create('site1.com', {width: 100, height: 100, onNewTab: false});
// refresh = new popup
Light.Popup.create('site3.com', {alwaysPop: true});
</script>

P/s: I haven't updated it for a long time, if it don't working, Please email for me :)

js-popunder's People

Contributors

dhtoan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.