I want to write to input and click submit on a form, but don't know how to access the elements, given an id. Help :D

Recommended Answers

All 2 Replies

It's the same for pretty much every browser.

document.getElementById('someidhere');

Ty for your help, but I could have found that after 1 second of google. I want to access elements from an html, not xml, and that html is an external link, not a local file. Something like a crawler. So I can't use the 'document' object, you see?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.