Javascript help
Discussion
I'm trying (and failing!) to get the confirm function working under anything other than IE. My code is as follows:
This works fine under IE but the form won't sumbit under Netscape or Firefox.
Any suggestions?
I wrote said:I've had to put a space infront of all the html tags as PH seems to strip them off
< script language="Javascript">
function AreYouSure() {
if (confirm("Do you really want to do this?"))
DeleteForm.submit();
else
return false;
}
< /script>
< form action="deletestuff.php" method="post" name="DeleteForm">
.
.
.
.
.
.
< table border="0">
< tr>
< td width="4" background="but4.gif">< /td>
< td background="but5.gif" class="PicButton" onclick="AreYouSure();">< font color="#222222">Delete selected< /font>
< /td>
< td width="4" background="but6.gif">< /td>
< /tr>
< /table>
< /form>
This works fine under IE but the form won't sumbit under Netscape or Firefox.
Any suggestions?
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff