Sign in to follow this  
kinitex

Switching Charts On Page

Recommended Posts

Right now I'm using an iframe with links using a target="iframe_name" to change the src of the iframe to a new html page with a different chart on it. Is there a better way of doing this?

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

If you are willing to load the src URL of an iframe with a new URL, through an HTML link, as you have mentioned the best way is to use iframe as a Target for that HTML link.

 

Ref. Code:

<iframe src="Chart1.html" name="iframe_name"></iframe>
<p><a href="chart2.html" target="iframe_name">Load New Chart</a></p>

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this