• Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

112
Views
when I clicked the submit button it should take the value of the description and write it down in another page how could I do it with JavaScript code

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>
9 months ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.