JQuery manipulate body element in a FRAME.

I'm trying to manipulate the element inside of a tag. Is there a way to do this? Here's the code:

$(document).ready(function() {
        var f=$('#foo');
        f.contents().find('body').add('Please Wait....');

<frame id="foo" name="myFrame" src="http://google.com" frameborder="0">

Ideally, when the page loads, I would like to add the message "Please wait..." in the element. I tried using JQuery to do this but can't get it to work correct.  
The #document is just an inherited CSS tag
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

The security restrictions imposed by the browser do not allow you to access/manipulate the DOM from a window/frame that is on a different domain from the page containing the frame.  
In other words, if your page is hosted at jollykh.com/test.html, and it contains the iframe above, it's not going to be allowed.  So the short answer is no.  Not what you want to hear, but that is the way browsers are designed.

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
Web Development

From novice to tech pro — start learning today.