is it incorrect to try and call my function like this within a link for the history.pushState
Code:
<a href="#" onClick='history.pushState(function1(),"Function1","Function1");return false'>Function1</a>
the reason I ask is that when I try to call the value for event.state I get it as undefined.