I have a link like this
<a href="#login_form">Log in</a>
after clicking on the link the url changes from
http:/domain.com
to
http://domain.com#login_form
and a login form pops up. But i do not want hash tag to be displayed in url. How to do this using java script? No java script used to display login form which pops up.
The login form is something like this.
<a href="#x" class="overlay" id="login_form"></a>
<div class="box">
<h2>LOG IN</h2>
<form name="login" action="" method="post">
</form>
</div>
OK. HERE IS THE JS FIDDLE. PLEASE CHECK.