Is it possible to pass parameter to HTML page via Javascript?

Asked

Viewed 48 times

1

I have the page index.html that I have a data listing as below:

<ul class="list-group list-group-flush listDocsFIn">
   <li class="list-group-item">
    <a href="financeiro.html">
      <div class="media-body">
         <input type="hidden" value="78657563">
         <h6 class=" mb-0">User1</h6>
      </div>
   </a>
   </li>
   <li class="list-group-item">
    <a href="financeiro.html">
      <div class="media-body">
         <input type="hidden" value="8765544">
         <h6 class=" mb-0">user2</h6>
      </div>
    </a>
   </li>
</ul>

would like to go to the page financial html. retrieving the data from the input that is with the ID of user.

I don’t know if I’m treating this one either ID in a correct way.

I can’t use the PHP javascript only.

Thanks in advance for Help!

  • 1

    By making the form method GET, the parameters will be passed in the URL. Then you recover in JS on the target page. I believe it has already been pondered how to recover right here in Sopt, worth a search...

  • Obrigado Bacco!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.