My guess would be, if everything else is right, which it appears to be (except that you should probably return false from the opening onclick event as well), that since onclick events are technically functions and any variables declared in them will only be available to them, you need to get your:
into the global scope. There are various ways. I'd recommend doing it like so:
Code:
onclick="window.winError=dhtmlwindow.open('winError', 'iframe', '_sys/winError.inc.htm', 'Rapporter feil', 'width=300px,height=200px,center=1', '');return false;"
Then hiding it like so (from within the iframe):
Code:
onclick="parent.window.winError.hide(); return false;"
There could also be other problems.
Bookmarks