Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a JavaScript File– Read all information from HTML Form. Display Submitted

ID: 3793001 • Letter: W

Question

Write a JavaScript File– Read all information from HTML Form. Display Submitted information in the different window.

<!DOCTYPE html>
<html>

<head>
   <meta charset="utf-8">
    <title>Guest Book</title>
       <style>
               fieldset {
padding: 1em;
font:80%/1 sans-serif;
border-color: red;
border-style: solid;
width : 50%
                   }
legend {
font-weight: bold;
font-size: 150%;
}

       function display() {
       document.write("hello");
       }
       </style>
</head>
  
<body>  
<header role="banner">
    <h1>My Guest Book </h1>
</header>
<form name="main">
  
<fieldset >
<legend>Personal information</legend>
<h4>What is your name?: <input type="text"><br>
What is your e-mail address? <input type="text"></h4><br>
</fieldset>


<fieldset>
<legend>Survey Questions</legend>
<h4>Please check all that apply: </h4>
<input type="checkbox" name="survey1" value="option1">I really like your Web Site.</br>
<input type="checkbox" name="survey1" value="option2">it's one of the best sites I've ever seen.</br>
<input type="checkbox" name="survey1" value="option3">I sure with my site looked as good as yours.</br>
<input type="checkbox" name="survey1" value="option4">I have no taste and I'm pretty dense,so your site didn't do much for me.</br>

<h4> Please rate my site on a scale of 1(poor) to 10(awesome) :
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select> <h4>
<h4> Please choose the one thing you love best about my web site : </h4>

<input type="radio" name="survey2" value="radio1"> That amazing picture of you</br>
<input type="radio" name="survey2" value="radio2"> All the cat photos, of course</br>
<input type="radio" name="survey2" value="radio3"> The inspiring recap of your suburban childhood</br>
<input type="radio" name="survey2" value="radio4"> The detailed list of all your Elvis memorable</br>
</br>
<h4> How can I improve my web site?</h4>
<textarea rows="4" cols="50">
please write here.
</textarea>

</fieldset>


<fieldset >
<legend>Free for All!</legend>
Feel free to seed more praise,gift offers,etc.: </br>
<textarea rows="4" cols="50">
</textarea>
</fieldset>

<input type="submit" value ="Click here to Submit"></button> or
<button type="reset" value="Reset">Erase and Start Over</button>
</form>
</body>   
</html>

Explanation / Answer

<script>
info="<!DOCTYPE html>
<html>
<head>
<meta charset=&#34;utf-8&#34;>
<title>Guest Book</title>
<style>
fieldset {
padding: 1em;
font:80%/1 sans-serif;
border-color: red;
border-style: solid;
width : 50%
}
legend {
font-weight: bold;
font-size: 150%;
}
function display() {
document.write(&#34;hello&#34;);
}
</style>
</head>
  
<body>
<header role=&#34;banner&#34;>
<h1>My Guest Book </h1>
</header>
<form name=&#34;main&#34;>
  
<fieldset >
<legend>Personal information</legend>
<h4>What is your name?: <input type=&#34;text&#34;><br>
What is your e-mail address? <input type=&#34;text&#34;></h4><br>
</fieldset>

<fieldset>
<legend>Survey Questions</legend>
<h4>Please check all that apply: </h4>
<input type=&#34;checkbox&#34; name=&#34;survey1&#34; value=&#34;option1&#34;>I really like your Web Site.</br>
<input type=&#34;checkbox&#34; name=&#34;survey1&#34; value=&#34;option2&#34;>it&#39;s one of the best sites I&#39;ve ever seen.</br>
<input type=&#34;checkbox&#34; name=&#34;survey1&#34; value=&#34;option3&#34;>I sure with my site looked as good as yours.</br>
<input type=&#34;checkbox&#34; name=&#34;survey1&#34; value=&#34;option4&#34;>I have no taste and I&#39;m pretty dense,so your site didn&#39;t do much for me.</br>
<h4> Please rate my site on a scale of 1(poor) to 10(awesome) :
<select>
<option value=&#34;1&#34;>1</option>
<option value=&#34;2&#34;>2</option>
<option value=&#34;3&#34;>3</option>
<option value=&#34;4&#34;>4</option>
<option value=&#34;5&#34;>5</option>
<option value=&#34;6&#34;>6</option>
<option value=&#34;7&#34;>7</option>
<option value=&#34;8&#34;>8</option>
<option value=&#34;9&#34;>9</option>
<option value=&#34;10&#34;>10</option>
</select> <h4>
<h4> Please choose the one thing you love best about my web site : </h4>
<input type=&#34;radio&#34; name=&#34;survey2&#34; value=&#34;radio1&#34;> That amazing picture of you</br>
<input type=&#34;radio&#34; name=&#34;survey2&#34; value=&#34;radio2&#34;> All the cat photos, of course</br>
<input type=&#34;radio&#34; name=&#34;survey2&#34; value=&#34;radio3&#34;> The inspiring recap of your suburban childhood</br>
<input type=&#34;radio&#34; name=&#34;survey2&#34; value=&#34;radio4&#34;> The detailed list of all your Elvis memorable</br>
</br>
<h4> How can I improve my web site?</h4>
<textarea rows=&#34;4&#34; cols=&#34;50&#34;>
please write here.
</textarea>
</fieldset>

<fieldset >
<legend>Free for All!</legend>
Feel free to seed more praise,gift offers,etc.: </br>
<textarea rows=&#34;4&#34; cols=&#34;50&#34;>
</textarea>
</fieldset>

<input type=&#34;submit&#34; value =&#34;Click here to Submit&#34; or
<button type=&#34;reset&#34; value=&#34;Reset&#34;>Erase and Start Over</button>
</form>
</body>   
</html>
"

document.write(info)
</script>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote