/    Sign up×
Community /Pin to ProfileBookmark

Use a form on outside html page

Hi,

This question is somewhat open-ended, but here goes:

Basically, I want to use JS to load an outside HTML page (outside of my web server, say any page on the web), fill in a field, and click a button on a form. Is this even possible? Is there any way to do anything like this?

Sorry for such an open-ended question, but I’ve searched around and haven’t really found much useful information.

Thanks for any replies.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@eCatOct 29.2008 — If I understand what you're saying, then no - it wouldn't be possible. JS has to know what it's looking for before it can work and people can name their fields anything - from 'textarea1' to 'user_name45.' For that matter, the submit button could be named anything as well.

So if you want to do this, you're looking at human labor.

Just curious - why would you want to do this?

eCat
Copy linkTweet thisAlerts:
@rnd_meOct 29.2008 — if you knew of a specific form, you could possibly submit to it's action URL from your page.

you could supply any values via your own form, and submit the form to the aforementioned action URL. this may cause a cross-domain warning/confirmation on some browsers, but it should work if the remote server cooperates.
×

Success!

Help @elVarouza spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...