timmah1 Posted January 10, 2008 Share Posted January 10, 2008 Hello, I'm using a popup window to show little details about a person. Within that popup is a link to either close the window, or view the whole profile. What I want to do, and can't figure out, is when someone clicks on the link to view the whole profile, I want the popup to close and the profile to open in the main window. How do I do that? Any help would be greatly appreciated. Thanks in advance Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted January 10, 2008 Share Posted January 10, 2008 This sounds more like a javascript feature than something in php. Try doing a little research on google about javascript and/or opening/closing other windows. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 10, 2008 Share Posted January 10, 2008 this is a JS question, but this should do the trick: code for child: <a href="javascript:window.close();">Close</a> <a href="javascript:window.parent.location='/url/to/profile.html';window.close();">View Whole Profile</a> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.