Javascript: Main page closes when there is any action performed on the pop-up window

Printable View