I have a page which will be loaded by some normal windows and some modeless windows(which is opened by code "window.showModalDialog()"), and I want to show different message in this page to these two situations.
I have thought about to check the existence of parent window, but it fails as a normal page can also have a parent window while loaded after a click on a link or button.
Please help, any hints will be appreciated. Thanks in advanced.