Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Sep 2001
    Location
    UK
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML form & Submit Button

    Hi,

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

    Thanks

  2. #2
    New Lounger
    Join Date
    May 2001
    Location
    New York City, NY
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML form & Submit Button

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

    <frameset col"50%,*">
    <frame src="page1.htm">
    <frame src="page2.htm" name="otherFrameName">
    </frameset>

    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:

    <script language="JavaScript">
    function functionName() {
    document.all.formname.submit();
    }
    </script>

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •