Closed Bug 89994 Opened 24 years ago Closed 24 years ago

DOM event document.forms[0].submit() does not work when used from javascript function

Categories

(Core :: DOM: Events, defect)

All
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 61893

People

(Reporter: nandini.sakar, Assigned: joki)

Details

if a form contains a submit button and an attempt is made to simulate the pressing of submit button from a javascript function using DOM and function document.forms[0].submit(), the simulation does not happen. The following web page does send out emails every one minute on Internet exporer . However it does not simulate the keypress on Mozilla. Help required. I am attaching the web page : <HEAD> </HEAD> <SCRIPT> function loadvalues() {top.loaded = true; setTimeout("sendautomail();",3000); }; function sendautomail(){ // self.frames[0].location.href="testppsServlet.html"; var i = 0; index1=1; if (index1 == 1) sendspecificmail(); intervalid = top.setInterval("sendspecificmail() ;",60000); }; function sendspecificmail() { document.forms[0].submit(); //top.frames[1].document.write("The Email Number Sent Now Is "); //top.frames[1].document.write(index1); // top.frames[1].document.writeln("<BR>"); //top.frames[1].document.close(); index1++; //if(index1 == noofurl) //{//clearinterval(intervalid); // index1 = 0;} ; }; </SCRIPT> <BODY onload="loadvalues();"> <CENTER> <FONT FACE = "Times" SIZE = 3> This is an automated email tester for 1.3. Check Out Whether it can stand the stress of automation. <BR> <FORM NAME = "Mail" ACTION = "mailto:nandini.sakar@intel.com?subject=TJS - Form&body=Stress Test Email" METHOD = "POST" TARGET = "_current" > <TABLE> <TR> <TD align=center> <INPUT TYPE = "submit" VALUE = "Send"> </TD> </TR> </TABLE> </FORM>
The problem here is that mailto: actions for forms are not yet implemented. When they are, by the way, they will require user interaction to actually send the mail... *** This bug has been marked as a duplicate of 61893 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.