Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <p><b>Test</p>
- <script>
- function setCookie() {
- var myDate = new Date();
- myDate.setMonth(myDate.getMonth() + 12);
- document.cookie ='Cookie1=736505' + ';expires=' + myDate + ';path=/;domain=domain.com'
- document.cookie ='Cookie2=99550843; expires=Fri, 3 Aug 2045 20:47:11 UTC; path=/; domain=domain.com'
- }
- </script>
- <input id="clickMe" type="button" value="Submit" onclick="setCookie()" />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement