How do you get the URL of an iframe on your page into the browser bar, a la StumbleUpon?

I like how StumbleUpon's navbar at the top of a shared page allows you to close the bar and let the page stand on its own. With the bar on, the url is stumbleupon plus the url of the iframe (the external page URL) in a query string. Below the bar is an iframe with the content of the external page being viewed/recommended (say, a story). Toggle the bar off and the page "stands on its own"--no bar, no iframe, just the external page's URL (say, ) in the browser's address bar. I'd like to do this on our website for recommended links. But I don't know how to get the iframe to fill/"stand on its own" when the bar is toggled off (closed) in jQuery.

Bonus: could you even get the share bar to toggle back on: re-appear, re-iframe the external page, re-populate the browser's address bar with the embedded url: ' '  My mind boggles.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nbierm65Author Commented:
(OK, SU doesn't use a query string, but makes the URL a subdirectory (presumably via redirect from a query string):

(Forget the re-appear thing. The back button works on SU to get the bar back and that's probably good enough. Unless it's easy to re-toggle.)

Michel PlungjanIT ExpertCommented:
It is a query string too, it is just using path-info instead of ?...

To close the banner use
<a href="your url" target="_top">Close</a>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.