Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

animated gif not working in firefox

Status
Not open for further replies.

matzilla74

Programmer
Jun 26, 2006
4
US
Hello all,
I have a wait page that displays an animated gif and uses a javascript function to redirect the page. This works fine in ie6/ie7 but does not work in firefox, the animation just freezes. Is there a way to get this to work in firefox?
Thanks

<script type="text/javascript">
function redirectTo(targetPage, querystring)
{
if (targetPage.length > 0)
{
location.replace(targetPage + querystring);
document.images['imgWait'].src = document.images['imgWait'].src;
}
}
</script>
</head>
<body onload="redirectTo('<%Response.Write(redirectPage);%>', '<%Response.Write(Request.Url.Query);%>');">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top