I have put a snippet of JavaScript into a Script Editor Web Part. It's function is to display an alert box and redirect the page after an Infopath form submission. I got it from this website and modified it.
<script>
function pagecontainerload()
{
setTimeout(setEventHandler,5000);
}
function setEventHandler()
{
var btnSend = document.getElementById("ButtonID");
btnSend.onmouseup = function(){Button.OnClick(this, event); alert("Your request has been successfuly submitted."); window.location='website.com';};
}
</script>
The script works fine in Chrome and IE, but not in Firefox.
Any suggestions?