Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){var url = 'http://url.com/lab/webapp/jfp/14/email?name=john';
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- var data = xhttp.responseText;
- document.querySelector('#result').innerHTML="<h2>"+data+"</h2>";
- }};
- xhttp.open("GET", url, true);
- xhttp.send();})()
Add Comment
Please, Sign In to add comment