I want to add "/finished" on my URL when click on button withou reloading the page or if it's not possible the "/", only "-finished".
My URL is: www.myname.com/firstparemeter/secondparameter**/finished**
So, the script must add after the last "/" or only add a "-finished" on the last word of the URL.
<script>
$(document).ready(function () {
$('#btnclick').click(function () {
window.location.hash = '/finished';
});
});
</script>
The HTML:
<input type="submit" value="SUBSCRIBE" class="btn-submit" id="btnclick" onclick="IsEmpty();" />
Can you guys help me? I'm begineer