Skip to content

Instantly share code, notes, and snippets.

@skovalyov
Created June 5, 2012 07:58
Show Gist options
  • Save skovalyov/2873441 to your computer and use it in GitHub Desktop.
Save skovalyov/2873441 to your computer and use it in GitHub Desktop.
How to prevent pop-up blocking in Firefox
package {
import flash.external.ExternalInterface;
public class URLUtil {
protected static const WINDOW_OPEN_FUNCTION : String = "window.open";
public static function openWindow(url : String, window : String = "_blank", features : String = "") : void {
ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window, features);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment