Forum Moderators: open
I have built a CMS system. When you are editing a page the people don't know what it will look like until they save the changes. I therefore have added a link "Preview this page" which opens a new window. I want the contents of the textarea written into this new page.
My form is called pagechangeform
My textares is called pagecontent
In the popup I am using:
document.write(document.opener.pagechangeform.pagecontent.value());
However, I am getting the error:
"document.opener.pagechangeform" is null or not an object.
Can someone please point me in the right direction.
Many Thanks,
Helen.