mercredi 12 mai 2021

How do I use a button to link one JS page to another JS page

At the moment I have this code:

<a href='./housing1.html'>
  <button type="button" className="Button" class="btn btn-dark btn-lg btn-block">Submit</button>
</a>

This easily takes me to an HTML page but when I try to go to a JS page I've created it either just displays the code on the webpage or the page flickers. Is it something to do with the location of the files or do I use something in React to solve this?




Aucun commentaire:

Enregistrer un commentaire