document.location.href for relative path
javascript
Solution
The default `type` of a button is `"submit"` so when inside a form, clicking the button submits it. Though it should first redirect but it's worth a shot:
<button type="button" onclick="document.location.href='/Recruiters.aspx'"></button>
Problem
I want to relocate on button click to a relative url: ``` <button onclick="document.location.href='/Recruiters.aspx'"></button> ``` but this is not working... Any suggestions?