Skip to main content
Ben Nadel at CFCamp 2023 (Freising, Germany) with: Mark Drew and Michael Hnat
Ben Nadel at CFCamp 2023 (Freising, Germany) with: Mark Drew Michael Hnat

Maintaining Javascript Pop-Up Window Communication Across Window Opener Page Loads

By
Published in ,

I just read a great entry over on the 1pixelout blog about how to maintain knowledge of a pop-up window and keep communication flowing between page loads of the window opener. It requires that the pop-up window periodically tell the opener who it is. It's a really clever idea that I won't try to summarize here. Check out his blog.

The reason why I am so excited about this is that I was trying to come up with a way to create a "pool" or Text Editor windows for an administration tool. The text editor takes like two seconds to load fully plus the pop-up time. I wanted to try to blur() the window after it was used for editing (rather than closing it) and then just focusing and settings values when it was needed again. The main problem was that reloading the main window would always destroy the reference to the pop-up. Well, not any more baby! Now, it's possible. I just have to build it.

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel