I want to open a new page from a existing page and as well as wnt to close the existing page using
java script.
here is the code i wrote
if (condition)
{
window.open('a.htm');
window.close('b.htm');
}
if it is incorrect what should i do?please suggest.
Note: I am giving the password on b.htm and want to open a.htm as well as want to close b.htm if password matches.