when I clicked the submit button it should take the value of the description and write it down on another page how could I do it with JavaScript code.
my HTML code and javascript so far
const idea = document.getElementById("Fidea")
const submit = document.getElementById("FSubmit")
const myText = document.getElementById("myText")
submit.onclick(
localStorage['text'] = idea,
mytext.innerHTML = localStorage['text'],
);
<form action="History.html" method="post" id="bodyForm" class="form">
<input type="text" placeholder="Name" required><br>
<input type="country" placeholder="Country" required><br>
<input type="email" placeholder="Email Address" required><br>
<input type="number" placeholder="Age" required><br>
<input type="text" placeholder="description" required><br>
<input type="submit" value="submit"><br>
</form>
My Other page
<body>
<script src="History.js"></script>
<p id="myText"></p>
</body>