The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

This script is NOT run automatically... only when the user clicks a link.
I did this to simplify the page a little. When the page first loads, if the user isn't logged in, a link to log in is displayed. When the user clicks on "sign in", this javascript is triggered and a form to signin is showed.

I really don't get why refreshing is messing up the page. Where I put that javascript doesn't matter. If I take out the script, the page loads fine. In Firefox it works perfectly.

I even tried saving the source of the blank page to a local HTML file. It displayed fine (though IE warned me of an ActiveX control trying to run).

On refresh, the page stops displaying immediately after where the script is in the code.

However, the HTML still loads in the browser... it just isn't displayed.

EDIT:

Now I'm REALLY confused.
I tried commenting out the whole thing... even
<script language="javascript" type="text/javascript"></script>
anywhere on the page, will prevent IE from refreshing?! Am I the only one experiencing this?