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 5982183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:03:01+00:00 2026-05-22T22:03:01+00:00

I am writing a Firefox extension that needs to write and submit a form

  • 0

I am writing a Firefox extension that needs to write and submit a form with a text type input box, which contains its own onsubmit function. The function is defined in the the target site, which I don’t control, so I can’t call it directly, and for security reasons it probably shouldn’t be called with a kluge-like wrappedJSObject. The page is done in frames, which seems to be leading to odd behaviors – e.g., adding “onchange” events for the form or the input elements isn’t triggering anything. I can’t simply trigger a submit, since this skips over the on-page submit function.

It has occurred to me that I could write to the input element, and then make some kind of change on the page which would then trigger an event listener which then calls the function. My question is more specifically: what would be the best kind of event to trigger and listen for? onchange doesn’t seem to be working when attached to the form or the input element; as far as I know, this is only for forms and form elements. I could listen for an onload event of a 1x1px transparent pixel image; but this sounds very klugey indeed. Has anyone been in a similar predicament, or seen a standard type solution for this kind of challenge?

  • 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-22T22:03:02+00:00Added an answer on May 22, 2026 at 10:03 pm

    Getting the submit button, then calling button.click() should both submit the form and trigger onsubmit handler.

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

Sidebar

Related Questions

I'm writing a Firefox extension that needs to know what the username of the
I'm writing a Firefox extension that needs to inject a css file into webpages.
I'm writing a Firefox extension that's to be used in house. Basically, I need
I am writing a firefox extension that interacts with a JSON server interface. I
I'm writing a Firefox extension and I need to hook the download dialog that
I'm writing a Firefox extension that uses lots of XMLHttpRequests, following the pattern of
I am writing a Firefox extension which creates a Java applet in the page.
I am writing a Firefox extension. I would like to search the current webpage
I am writing an extension for Firefox, and I need to find out the
I am working on a Firefox extension that will involve ajax calls to domains

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.