Javascript MAC IE bug?

I

Ian Swift

Have I found a bug in IE for the MAC, v5.2.2.

I have a simple html page:

<HTML>
<HEAD>
<script>
function doReport(){
document.frmMain.action="mac_test.htm"
document.frmMain.target="_new"
document.frmMain.submit()
}
</script>
</HEAD>
<BODY>

<form name=frmMain>

<input id=text3 name=text3><br>
<br>
<span onclick="doReport()">click 1</span><br>
<span onclick="alert('check what happens next')">click 2</span><br>

</form>

</BODY>
</HTML>

If you click on click 1 and then close the new window, then click on
click 2. What happens is after you click the ok for the alert a new
window opens which is like the form re-submits. However, no form data
is passed, so it isn't submitted.

If you remove the .action everything works fine.

Has anyone else seen this, heard of this or know a work-around. It's
really frustrating. It works perfectly on IE for the PC.

Ian Swift
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top