Simple javascript Modal window

Small library to replace JavaScript's built in Alert, Prompt and Confirm popup boxes, only a 4Kb foot print compressed.

Compatable with
IE6+
Firefox 2+

Opera 9+
Safari 3+

Please post any bugs or feedback, I will try and keep this script updated with as many browsers as possible.


Download
Demo

Leave a comment

Bookmark with

Sri ja 26th Aug, 2009
Looks like there is some issue when I run it on IE7 and IE8. I get runtime error, not sure how to debug
Kieron 26th Aug, 2009
Could you be more specific? ... maybe a screen shot of what's happening or link to your source code?
Tom Simon 7th Sep, 2009
How do you insert a line feed/carriage return in a alert? I have tried \n and to no avail. Thanks for the code.
Kieron 8th Sep, 2009
@Tom Simon the text you pass in the options is rendered as html, so you can pass P tags and BR tags.
michi 2nd Nov, 2009
I miss a fit-to-center function, otherwise it's perfect script!
Post a comment

About

Welcome to my online portfolio and development site where i can share my developments and projects.

Ive been developing for 7 years working mainly with online applications and websites.

Download my CV or

Favorites

RSS Feed Subscribe
RSS or Atom

Copyright 2010 kd3sign.co.uk     Best viewed in Mozilla Firefox
hosted by Media Temple powered by CodeIgniter