Hello all,

I have a function in which onclick one window opens and there is logout option on the parent page.
when I log out i want the child window to close as well.

My native code is in Java and I need something in javascript.

Plz help

Recommended Answers

All 3 Replies

Something like this, if you are closing from the parent window.

var childWindow = window.open(....);
childWindow.close();

if you want to close from the child window, you can do this:

self.close();

Hope it helps.

thank u...it helped :)

I'm glad to know it.

Just mark as solved then.

Seeya.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.