Reputation: 1
<header className="App-header">
<div class ="Header" id="Welcome-Sign" />
<h1> Welcome Sign-up Below </h1>
<div class = "button" id = "btn">
<a href='login.js'>Login</a>
<a href='sign-up.js'>Sign Up</a>
</div>
<p>
Get it to go Now
</p>
</header>
Above is the code I used for the a href to to link the home page to the sign-up.js page.
The sign-up.js file is in the same directory. any suggestions?
Upvotes: 0
Views: 1081
Reputation: 64
I'm not sure what your goal is, but if you use href, you can give it an id. On your page, you simply put your target with the same id.
<a href="#newPlace">New Place</a>
.
.
.
<div id="newPlace"></div>
You won't need any js for that though.
Upvotes: 0
Reputation: 4659
Please Note this..
if you use within same directory just give file name.
<a href="home.html">Home</a>
While within parent directory.
<a href="../home.html">Home</a>
While within sub directory.
<a href="sub/home.html">Home</a>
Upvotes: 1