• HTML form & Submit Button

    Author
    Topic
    #365412

    Hi,

    Anyone know if it’s possible to create an HTML form, with it’s ‘submit’ button in a seperate frame?

    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #564084

      Yes. Let’s say you have two frames set up like this:

      Then, you can set a button on page1.htm with its onclick property set to:

      parent.otherFrameName.functionName()

      Then, in page2.htm, which contains the form, you place the function that actually submits the form:

      function functionName() {
      document.all.formname.submit();
      }

      This function should be adjusted if you’re working with Netscape, but you get the idea.

    Viewing 0 reply threads
    Reply To: HTML form & Submit Button

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: