I have to say that it worked for me in IE9, with a warning message.
See also http://www.codingforums.com/showthread.php?t=262759
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 01-18-2013 at 09:15 AM..