Private_Guy
06-27-2007, 07:52 PM
Hi there,
I have this JavaScript which works really good with IE but not with firefox, how can I fix it to work with Firefox too?
Source:
<center><input type="submit" value="Upload!" type="submit" class="lstbox" id="upload" onclick="document.getElementById('text1').style.visibility= 'visible';">
<div id="text1" style="visibility:hidden;">
<p align="center">
<b><font size="4">
<marquee direction="right" scrolldelay="50" behavior="alternate">...</marquee></font>Uploading In Process...</b>
<b><font size="4">
<marquee direction="right" scrolldelay="50" behavior="alternate">...</marquee></font></b></p>
</center>
<HEAD>
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Are you sure you want to cancel your upload?")
if (answer){
alert("You have successfully cancelled your upload")
window.location = "index.php";
}
else{
alert("Your upload has not been cancelled and will be continued")
}
}
//-->
</script>
<form>
<input type="button" onclick="confirmation()" value="Cancel Your Upload?">
</div>
</form>
Thanks very much.
Best Regards,
Private_Guy
I have this JavaScript which works really good with IE but not with firefox, how can I fix it to work with Firefox too?
Source:
<center><input type="submit" value="Upload!" type="submit" class="lstbox" id="upload" onclick="document.getElementById('text1').style.visibility= 'visible';">
<div id="text1" style="visibility:hidden;">
<p align="center">
<b><font size="4">
<marquee direction="right" scrolldelay="50" behavior="alternate">...</marquee></font>Uploading In Process...</b>
<b><font size="4">
<marquee direction="right" scrolldelay="50" behavior="alternate">...</marquee></font></b></p>
</center>
<HEAD>
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Are you sure you want to cancel your upload?")
if (answer){
alert("You have successfully cancelled your upload")
window.location = "index.php";
}
else{
alert("Your upload has not been cancelled and will be continued")
}
}
//-->
</script>
<form>
<input type="button" onclick="confirmation()" value="Cancel Your Upload?">
</div>
</form>
Thanks very much.
Best Regards,
Private_Guy