0

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>

2 Answers2

0

You can use a query string (https://en.wikipedia.org/wiki/Query_string) like this:

http://example.com/path/to/page?firstParameter=data1&secondParameter=data2

cornacchia
  • 473
  • 2
  • 9
0

This question is a duplicate(I believe). Check out this link. It clearly highlights how values can be passed from one page to another. How to redirect on another page and pass parameter in url from table?

Rishabh Mandayam
  • 425
  • 1
  • 4
  • 14