1<!DOCTYPE html> 2<html> 3<head> 4 <title>Page with access to document.cookie</title> 5</head> 6<body> 7 <script type="text/javascript"> 8 cookie = document.cookie; 9 document.cookie = "name=browser"; 10 parent.window.postMessage("cookies are R/W", "*"); 11 </script> 12</body> 13</html> 14