Run javascript in window.open url field

Hmmm thx, now i just want to know if it’s possible, can i execute
document.cookie="pid=2);
so that it will show a page that requires that cookie?

so run a command that sets cookie for site and then runs the innerhtml?