This is the code written on current page,i have to pass attributes from this page to the other page:
<script>
$(document).ready(function() {
$("buttons").click(function() {
$(location).attr('href', 'www.google.co.in');
});
});
</script>