Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

101
Vistas
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>
7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.