1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sub Frame to get cookies</title> </head> <body> <div id="content">Example Sub Frame</div> <script type="text/javascript"> document.cookie = "frame=subframe"; </script> </body> </html>