-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.html
26 lines (26 loc) · 1.98 KB
/
index.html
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
<body style='font-family: Consolas; background:#72bcd4;'>
<script>
function post_question(){
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "/json-handler");
xhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = xhttp.responseText;
}
};
question = document.getElementById("question").value
answers = document.getElementById("answers").value
xhttp.send(JSON.stringify({ question: question, answers: answers }));
}
</script>
<form method="POST">
<h2>Question: </h2>
<input type="text" size="150" id="question" name="question" value="how do you calculate term Life Insurance need">
<h2>Answers: </h2>
<textarea name="answers" id="answers" cols="150" rows="10" >be a great question if you be go use the term policy cover a debt like college expense or your mortgage then use that amount if you be gamble on it cover your life plan for 8-10 times your current salary and cross your finger that you and your demise time it well with your policy otherwise all the money you put into the policy vanish when it end good luck and thanks for ask||there be some life insurance calculator that you can use determine how much term life insurance you need WEBSITELINK be a website that have free calculator design help you determine your term life insurance need some people use the figure of 10 times their annual income||the need for life insurance be a combination of what you owe and what those that you love will need if you predecease them this calculation can be complicated or simple but it shall recognize the need of those who depend upon you since you indicate term insurance the last factor be how long you will need the coverage</textarea>
<br><br>
<input onclick="post_question()" type="button" value="Submit">
</form>
<div id='demo'></div>
</body>