faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

28 of 32 people (88%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Is possible to submit a FORM that is in one FRAME and the SUBMIT button in another?

Mar 6th, 2001 14:43
B Kez, Krzy Ber,


You can do this with a button and some simple javascript.  The function 
called by the button looks like this:

function submitMyForm(){
  parent.FrameName.document.FormName.submit();
}

FrameName is the name of the frame where your form is located, and 
FormName is the name of the form itself.