You may try this (assumed this code in in a blade template):
<button type="button" onclick="window.location='{{ url("users/index") }}'">Button</button>
However, {{ url('users/index') }}
will print the url
so, it'll become something like this in the browser:
<button type="button" onclick="window.location='http://domain.com/users/index'">Button</button>
It means that, you have a route declared something like this:
Route::get('users/index', array('uses' => 'UserController@index', 'as' => 'users.index'));
In this case, may also use:
<button type="button" onclick="window.location='{{ route("users.index") }}'">Button</button>
Out put will be same.