A snipet:-
// listen for clicks, opens a hyperlink attached to the event. //
$("#canvas").click(function popMessage(e) {
$("#canvas").hide();
// hyperlink opens a new window upon click on the bubble
return !window.open('About.aspx?info=' + info, "pop", "resizable,width=1000,height=600,");
});
This works good.
However, I am thinking of a scenario, where a person opens 10 different pop up windows and gets confused which window was referencing to which click.
Came to mind that I could, only allow one pop up window at a time.
for the first click, a new popup window opens. for every next click, the old popup window is replaced by the new click.
finally when parent page is closed, popup window is closed.
What kind of property should I be looking at for this concept?
( to be noted that the address of my target popup is not the same, every time, a small part of the address is a code passed as the 'info' )