I have a page with a iframe tag, that is loading another page with different domain.
<body>
<iframe class="test" src="http://google.com" width="100%" height="100%"></iframe>
</body>
I want to add a class with jQuery to the page that is running in my iframe. (For example, in google.com I want to add a border to google logo.)
I tried this js code, but it dose not work.
$("iframe").contents().find(".google_logo").css({"border":"2px solid red;"});
Thank you very much.