I'm not sure this can be done, but I'll ask anyway.
I like to keep all my code on a single page, if possible. I'm sure others are that way too. I used to have 1 main file calling other smaller files to execute scripts. But in this case I'm keeping all my scripts on 1 file.
I have a time when I need a simple popup window (500x500) that will simply display some instructions and maybe something dynamic, later on.
I am saving the instructions in a hidden div on the primary file. And originally I was calling that content in a modal popup fashion. Which means everything is grey in the background.
I now want to display that same instructional content in a new popup window, so my users can reference between windows. This would be easy if I had the content on a separate file, or if I was scripting some php if/else statement on the main file. I want to stay away from the if/else coding, since I have tons of other things.
So my question is, is it possible to open a new popup window, that can reference and display only a portion of the main file? Say, for example, a div called ?
It's a stretch, I'm sure.
Here's what's inside the link:
onclick="window.open('popup.php','popup','width=500,height=500,scrollbars,resizeable')"
The popup.php is obviously a new file, but I'm hoping there's some js ability to reference a select portion of the parent window.