I have worked with showModelessDialog method of window object. I used it in the onclick event handler of a button as below to open myDialog.htm file:
and I put a button on the myDialog page to show the URL of the first window when clicked as this:
It worked fine. Then I wanted to show myDialog window through executing a context menu command. I added necessary changes to registry to insert a command to IE context menu and targeted it to a script containing this line of code:
So far so good. myDialog window opened. I expected to be able to use dialogArguments again to do some changes in the window I clicked the right mouse button. But unexpectedly I understood that no parameter could be sent to myDialog window, in fact using every parameter that I passed to it was faced with an undefined error. Well, where the problem lies. How can I access the window I made a right click on in this way?
I hope I could express my problem clearly and I hope there is a solution to my problem.