how do i document.forms[0].submit() a form to a window.open?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bushnellweb
    New Member
    • Jan 2010
    • 48

    how do i document.forms[0].submit() a form to a window.open?

    I have a virtual form with inputs like this...
    Code:
    newInput = document.createElement("INPUT");
    newInput.type = "hidden";
    newInput.name = "deprecated_form_id";
    newInput.value = deprDocID;
    document.forms[0].appendChild(newInput);
    and when i do a document.forms[0].submit(); how do I get it to submit to a window.open with specific options like toolbar=no, location=no , etc. ?? Can i put javascript in the target tag or something?
  • bushnellweb
    New Member
    • Jan 2010
    • 48

    #2
    maybe i should create the window....write the virtual inputs to it then submit it from the current window...what do yuo think?

    Comment

    • bushnellweb
      New Member
      • Jan 2010
      • 48

      #3
      first you need to create a new window
      Code:
      var objWindow = window.open("",_blank,option)
      Then add objWindow. in front of any statement that says document. I realize that this is vague but if you know javascript well enough to try something like this then you will know when to add objWindow. and when not to.

      Comment

      Working...