Javascript - Pass Value


SUBMITTED BY: Guest

DATE: July 25, 2013, 4:13 p.m.

FORMAT: JavaScript

SIZE: 435 Bytes

HITS: 1168

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title></title>
  5. <script>
  6. function submit() {
  7. var num = document.getElementById("number").value;
  8. window.location = "http://iphoneimei.info/?imei=" + num;
  9. }
  10. </script>
  11. </head>
  12. <body>
  13. <input id="number" />
  14. <button id="button" onclick="submit();">Go</button>
  15. </body>
  16. </html>

comments powered by Disqus