I would like to make a login, pop-ul that closes after succeful login or registration and after that it refresh the index.php, so the user can comment. My site is http://www.real-estate-tipz.com. For now i have managed to create the pop-up but after i login it takes me through the same pop-up window, and that window i wanted close. I have used: <a onclick="window.open('wp-login.php','popup','width=500,height=600,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" href="http://www.real-estate-tipz.com/wp-login.php">Login</a> Code (markup):