-
Notifications
You must be signed in to change notification settings - Fork 0
/
eco.js
35 lines (27 loc) · 776 Bytes
/
eco.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict";
/*
(function() {
var ADDRESS = "common.xml";
window.addEventListener("load", function() {
var ajax = new XMLHttpRequest();
ajax.onload = postdata;
ajax.open("GET", ADDRESS, true);
ajax.send();
} );
function postdata() {
var frags = jQuery.parseHTML(this.responseText);
//puts links into the html head
$("head").append(frags[0].innerHTML);
//puts content into the document header
//$("body").prepend(frags[2].innerHTML);
}
} )();
*/
$(document).ready(function() {
$('#submit').click(function() {
alert('Message has been sent. Thank you for contacting us');
document.getElementById('contactname').value = "";
document.getElementById('contactemail').value = "";
document.getElementById('message').value = "";
});
});