I'm not quite sure how to explain this but I'll give it my best shot.
My question is, how do I get the sitemap to recognize the page being loaded by the function OR how do I send the output to the div without the use of iframes?
Sorry if this is not well explained, if you need more detail, let me know.
One thing I had thought of is to add a duplicate href with display:hidden style to allow the sitemap to be generated whilst maintaining the loadPage function for the actual links, but surely this would be overkill?
Thank you in anticipation...