Here's what I did, which works perfectly. I have a hidden input on my page called reloadValue. This will hold the date value (milliseconds) that's created by the function. If the control is empty when the page loads, the value is loaded into the control. If the control DOES have a value, and that value doesn't match the value just generated, the control is emptied and the page reloads. Note that I'm using jQuery, and telling the body to show in the IF statement. I have set the style of the body to display: none, so that it won't appear to load twice to the user--it just appears when we're all done with the (final) load.
$(document).ready(function()
{
var d = new Date();
d = d.getTime();
if ($('#reloadValue').val().length == 0)
{
$('#reloadValue').val(d);
$('body').show();
}
else
{
$('#reloadValue').val('');
location.reload();
}
});
Cheers!
Jay