Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <!-- include JQuery -->
- <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.2.min.js"></script>
- <title>Add Parameters</title>
- </head>
- <body>
- <script type="text/javascript">
- $(document).ready( function ()
- {
- $('a').each(function f() {
- var link;
- link = $(this);
- link.attr('href',link.attr('href') + window.location.search);
- });
- });
- </script>
- <a href="http://www.google.com">Google</a>
- <a href="http://www.yahoo.com">Yahoo</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement