[js] Close window on logout, refresh parent . . read on

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

adam_uk

Established Member
Impact
20
hey guys hows it going

working on a small project which in involve a pop up window and a parent page

ive got a logout link which will close the pop up and refresh the parent window saying youve logged out sucessfully

ive achived this sucsessfully with this

Code:
<a href="javascript:;" onclick="opener.location='login.php?logout=yes';self.close()">

problem i now have is that some users will close the parent window because it doesnt do anything while there using the pop up

so what i need to do is some how check if the parent window is open or not to whether the window closes

i can just put self.close before the link and it will close the window and then try and refresh the parent window but i need to provide confirmation to the user theyve logged out

im dealing with some senstive information such as, usernames, passwords and addresses.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

More data. Your data. See what is new
Major update
We have made a number of features available to provide sellers more data for their domains and inquiries, and greater access to the data...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back