
Originally Posted by
W8 4me
I've tried a few things, like
Code:
<body onload="window.location.reload()">
but this makes it spaz out and refresh repeatedly. Which is odd.
What's odd about that? It's doing exactly what you asked. The real solution is to find the cause, however this will give you a single reload:
Code:
<script type='text/javascript'>
(function()
{
if( window.localStorage )
{
if( !localStorage.getItem( 'firstLoad' ) )
{
localStorage[ 'firstLoad' ] = true;
window.location.reload();
}
else
localStorage.removeItem( 'firstLoad' );
}
})();
</script>
Where used, return should be executed unconditionally and always as the last statement in the function.
That's my signature, it's not part of the damn post!
Bookmarks