(C) by Marcin Nowak foto.chomik.net www.wyprawa.net
TEST IT: popup YN! popup OK! popup normal
Standard JS popups stop scripts execution, as long as they are visible. This popups (with OK and OK/Cancel buttons) can be i.e. displayed with onLoad event, while the rest of the page continues to load.
It is red, because I needed it red. I'm sure everyone will be able to fix it.
Popup must be called from BODY section - it fails if you call it from HEAD.
myOk, myCnc parameters are optional. Just leave them empty if you don't want to bind your own code to the buttons.
Some rights reserved This code is available under the following licence: http://creativecommons.org/licenses/by-sa/3.0/ You are free: * to Share -to copy, distribute and transmit the work * to Remix -to adapt the work Under the following conditions: * Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). * Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. * For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page. * Any of the above conditions can be waived if you get permission from the copyright holder. * Nothing in this license impairs or restricts the author's moral rights.