Try using a semicolon after the window.alert() or additional attributes to the script-tag like type.
C#Jaap
Junior Poster in Training
63 posts since Sep 2009
Reputation Points: 15
Solved Threads: 11
Skill Endorsements: 0
It's not appearing, because you're rendering content on the current page, then immediately redirecting the user to a different page, before they see the content.
<script type="text/javascript">
if(confirm('You entered an incorrect password'))
window.location = 'homebody_admin.php';
</script>
blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12