browser_cmd_cookie.html 413 B

1234567891011121314151617181920
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>GCLI cookie command test</title>
  6. </head>
  7. <body>
  8. <p>Cookie test</p>
  9. <p id=result></p>
  10. <script type="text/javascript">
  11. document.cookie = "zap=zep";
  12. document.cookie = "zip=zop";
  13. document.cookie = "zig=zag; domain=.mochi.test";
  14. document.getElementById("result").innerHTML = document.cookie;
  15. </script>
  16. </body>
  17. </html>