The js is run on the client, so it won't show until the page has finished loading. BUT, you're stopping the page load with a redirect.
You could use a delayed redirect:
<body>
<?php
header('Refresh: 3; url=index.html');?>
<p>hello</p>
</body>
Either that or use a javascript redirect after the alert.
diafol
Keep Smiling
10,613 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57