This code should work on any browser, I think.