Skip to content
A javascript library to create popup/popin widgets.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



This library allows creating javascript popup/popin widgets in a simple way.


  1. Grab the code from github.

  2. Open astrails-widget.js, and change values of hash “opts” to point to your URLs and adjust iframe sizes.

  3. Compress the script with YUI compressor.

  4. Upload compressed script to the location defined in opts.js_url.

  5. Copy-paste a snippet, change the URL of your javascript, and add parameters you need to pass to iframe code:

<script type='text/javascript'>
  document.write(unescape("%3Cscript src='" + ("https:" == document.location.protocol ? "https" : "http") + "://' type='text/javascript'%3E%3C/script%3E"));
  1. Write the server part refered by opts.iframe_base_url.

  2. Give this snippet to your users.


Copyright © 2009 Boris Nadion. Licensed under the MIT license.

Something went wrong with that request. Please try again.