Hi. I am using some javascript to hide the Next button then automatically submit the page after a flash file (TV ad) has loaded and played. It works well in IE and FireFox but not in Chrome or Safari. In Chrome & Safari the count down to the page submit starts as soon as the page appears, instead of starting the count down after the page has fully loded (ie the flash file has loaded and started playing). This means the page is submitted before the embedded flash file has finished playing. The browsers seem to treat the "onload" event differently. Does anybody have a fix or suggestion for this? Here is the code I paste into the question HTML header...
<body onload="doonload()">
<script language="javascript">
function doonload()
{
document.getElementById('next_button').style.visibility = 'hidden';
setTimeout('SSI_SubmitMe()',31000);
}
</script>
Thanks in advance.
Russell Pizel