In a web program, some own dialogs are often made, instead of the default Alert's dialog, how to make this page in the same mode in the program, or even regardless of the program or virtual directory Do you have access to the same way?
I used to be clumpled to the first page URL, calculate and record the root directory of the program, and then connect to the path to the dialog page with this directory in the general function of accessing the dialog.
Just finding a method, when the program uses a framework mode, the main file contains several frames, when in the page of a frame, no matter the page location, as long as you open the dialog page, do not
WINDOW.SHOWMODALDIALOG (URL ...
The way, while
Window.top.ShowModalDialog (URL ...
The way, where the URL is a path relative to the primary file (top-level window file directory), it can simply implement the above object.