I have a simple link on a page <A HREF=”javascript:initatepage(‘filename’, 0)” target=”_self”> a link </a>
(no space in javascript)
which when clicked runs the function:
function initatepage(itemcategory, startPos) {
this.location.href = ‘itemspage.html’;
document.open();
document.write(‘<html><body>some text</body></html>’);
document.close();
}
The idea is to open a blank page (itemspage.html) and dymanically write html to it. Although the text is displayed in the browser, the URL in the address bar remains as the referrer page, which when the page is refreshed causes in Netscape (well at least in version 7.2 that I have) a
Security Error: Content at wyciwyg://76/[I]referrer page[I]referrer page
in the javascript console.
I’ve also tried to no avail
function initatepage(itemcategory, startPos) {
var itemWindow = Window.open(‘itemspage.html’, ‘_self’);
itemWindow.document.open();
itemWindow.document.write(‘<html><body>some text</body></html>’);
itemWindow.document.close();
}
Any Suggestions?