Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:20:30+00:00 2026-05-22T20:20:30+00:00

When we do a window.open() , is there an option to specify method =

  • 0

When we do a window.open(), is there an option to specify method = POST? Since by default, it is GET?

What I want is this. The parent window has some form parameters (many in number) and they should be sent to the server on window.open(). It is not a good idea to append all of them in the GET url using query string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:20:30+00:00Added an answer on May 22, 2026 at 8:20 pm

    You could use window.open() to open an empty window, with a name. Then you could use a <form> with a “target” attribute referring to that new window’s name, and post it.

    edit OK here’s the idea. You have a form on the page, and it can be hidden:

    <form id='theForm' method='post' action='/your/action' target='TheNewWindow'>
      <input type='hidden' name='param_1' value='whatever'>
    </form>
    

    Then you get the results into your window like this:

    window.open('about:blank', 'TheNewWindow');
    document.getElementById('theForm').submit();
    

    Make sure that the window name you use is a valid identifier (like a JavaScript variable name), or IE will get upset.

    Here is a jsfiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the window.open() object has some funky parameter list... is there a way to do
Is there any way to know for events when move a window with window.open?.
Is there a way to reuse and overwrite data in a window.open object for
Is there a way to automatically open up the Windows Performance Options dialog using
Is there any way to pop-up TIPS and pop-over any other windows open? I
When i call window.open, I can include a list of parameters. One of these
Is there a way to disable the standard built-in function of the Windows-Key (open
Is there an Open Source Free Graph Control for Windows Forms .NET 2.0?
Is there an open source project that allows for an auto-update of windows binaries?
Is there a way to open My Computer Properties from C# Windows Application? For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.