I'm playing around with a windowing system, my page dynamically creates iframes.
Right now I have to pull each iframes ID from the main page. On iframe page load, the iframe calls top.blah() which loops through all iframes and finds the one making the call and then pulls out its Id. This seems wrong to me.
Is there a way I can have the Main page "push" into the newly created iframes an ID of some sort. Not just on the iframe tag but into the Document in a form JS can use.
Another way to frame the question: what is the best way to share variables between parent page and Iframe if any.