Link to home
Start Free TrialLog in
Avatar of Bobo--just_East_of_Madison
Bobo--just_East_of_MadisonFlag for United States of America

asked on

Expand or collapse an iframe

I have a line of code to support an iframe:

<iframe src="https://xxxxxx.xxx.xxxxxx.xxx/xxxxxx/" width="100%" height="50%"></iframe>

Very simple, nothing fancy.

What I need is js (or jquery) to allow the user to expand or collapse it, since what loads in the frame is kind of heavy and not needed outright.

I've seen examples but they seem overly complicated, especially considering my needs.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Is the contents of the iframe a page from the same domain as the main page?

If not lots of luck cross domain scripting just triggers security measures that prevent it.

Cd&
ASKER CERTIFIED SOLUTION
Avatar of Proculopsis
Proculopsis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial