How to fetch data from external url

Hi, how can I fetch data from external url, the target url has a button called Random, it will generate hashed password, I would like to call that button to my page and collect the data given as a result of that click on the button.

can you provide me with a sample snippet or a url that explain this?

Sponsor our Newsletter | Privacy Policy | Terms of Service