Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script>
- $(document).ready(function() {
- $("#testButton").on("click", function() {
- var testString = $("#testString").val();
- document.location.href = 'test.cfm?input='+escape(testString);
- });
- });
- </script>
- </head>
- <body>
- <input type="text" id="testString" placeholder="Enter test string">
- <button id="testButton">Test</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement