You are currently viewing the BOOK: Beginning JavaScript 5th Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Safari 8.0.6 doesn't parse in the same order as Chrome or Firefox. The red background appears after the second alert even though the code comes before it. Any idea why that would be?
Frankly put, Safari is behind the pack of modern browsers, as far as features/support/technology is concerned. It appears to still exhibit the old behavior of not updating the page until the code finishes execution.