I'd like to post the data to my php page. The below code works but I want to post it with on load function not with on click.
I want to post it when the page is loading.
How can I do that? thank you in advance.
I also want to remove the alert.
name: "Donald Duck",
alert("Data: " + data + "\nStatus: " + status);