0
0
Hi
I'm new to js and i have to use something in my project.
I have a function that is it :
function hash_f() {
var hash = new XMLHttpRequest();
hash.onload = function(){
document.write(this.responseText);
}
hash.open("GET", "http://example.com/new.php", true);
hash.send();
}
I want to know how can i document.write(this.responseText) after i clicked on a form submit button :
<input type="submit" id="n" />
can anyone help me ? Thanks
1
Issues specific to programming and software development are off topic, see What topics can I ask about here?. Try [SO] but please first read How do I ask a good question?.
– DavidPostill – 2015-02-08T18:00:50.870