Published
Edited
Jun 1, 2020
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const button = html`<button>Submit</button>`;
var url = "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdCV2Q08RVsl877jXniP9nlDlOsBu97XHM_Gehkr5Hp2_fYxA/formResponse";
var data = 'entry.1707258535='+Name+
'&entry.2081908180='+Age+
'&entry.323618692='+Details;
button.onclick = () => {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
xhr.setRequestHeader('Content-Type', "application/x-www-form-urlencoded; charset=UTF-8");
xhr.send(data);
};
return button;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more