change iframe content and parent window content from single click in iframe window
I have an iframe on a page with a series of <A id="#1"><A id="#2"> etc, i'd like to make one of them also change the content in the parent window at the same time, in just one click. in other words, window.top.location.href and id="#2" in one link statement. the top window would change at the same time as the id="2#". is that possible? i know with the old html frames,you could load different html pages in different frames of the page with one click, which was incredibly useful, but i'm not finding a similar script for iframes.
wait, i'm not thinking about this correctly, if parent window changes, iframe would also change if not included (and even if included i need a way to pass the id series inside the iframe <a id=#whatever" to the new (yet same, iframe). so if i include iframe on parent window that has changed, ......
ugh. okay, with the old method of jumping to anchor links in/out of page, you could append the #whatever to the end the address. like blahblahpage.html#whatever. they messed all that up with their html5 changes.
i'm guessing the only way to resolve this is to window.top with the single click and just have the iframe on the new window.top loaded with the new id already in it.
sorry about the mess. you can skip this crazy confused question