window.location.href

window.location.href

I have a form

<form action="abc.php" method="get">

      <button id="b1" class="signInInput" value="hid2" onclick="signUp()">Create Free Acount</button>
      <button id="b2" class="signInInput" value="hid1">Sign In</button>

</for>

on click the page redirects to abc.php

but I want... button .. id=b1 .. on click the page redirect to xyz.php

my jquery is:

    function signUp()
    {
        window.location.href = 'user/user.php?val=nnnn';
    }