coder
coder

Reputation: 701

Using <iframe> to add one HTML page to another, how to give effects on first page

I use <iframe> within another page.

How can I give effects to the controls of first HTML page id's or classes, while accessing it from a second page?

Upvotes: 2

Views: 168

Answers (1)

elrado
elrado

Reputation: 5272

something like that

use

$("#myid", top.document); 

or

$("#myid", parent.document.body); 

Upvotes: 1

Related Questions