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

  • Home
  • SEARCH
  • 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 3403032
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:12:39+00:00 2026-05-18T05:12:39+00:00

I want to be able to submit a form after a page loads automatically

  • 0

I want to be able to submit a form after a page loads automatically through Javascript.

I am writing a google chrome extension.

So far the extension can fill in text in the input boxes but I can’t figure out a way to get to the next step where the user would click Submit. Please help. Thank you.

EDIT: Pardon my edit. It wasn’t clear that he was writing a chrome extension to those of us in the chatroom. –drachenstern

  • 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-18T05:12:39+00:00Added an answer on May 18, 2026 at 5:12 am

    Did you try something like document.getElementById('myForm').submit() ?

    With a form like (after EDIT):

    <form id="myform" action="/url/To/Action">
      ...
    </form>
    ...
    <script>
      document.getElementById('myForm').submit();
    </script>
    

    EDIT after your comment:
    The script tag must be after the form tag. Or at the very end of the body tag if you want to be sure all the DOM elements are loaded.

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

Sidebar

Related Questions

Hi - Simple question ahead! STATUS : I've come this far I've implemented a
I want to put a validation that the user always enters a value in
I am working on a web application project using Tapestry 5 framework/javascript. This application
Wait- please don't suggest the Validation plugin until reading.... I've looked into it.. I'm
I know this sounds silly but i forgot how to code non-ajax. Specifically: I
I am currently working on a zend framework site using an ACL. The ACL
I'm struggling to create a shoutbox for django. Everything works fine now concerning reading
im trying to figure out how i can do this. i have a list
I've integrated Asp.net MVC with Sharepoint site. It works great. But I'm using default

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.