Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How should I do it to change only iframe part if I choose from a menu?

Posted on 2014-04-28
3
Medium Priority
?
277 Views
Last Modified: 2014-05-04
I want to overcome a problem with JavaScript not working in MS Internet Explorer 11 by changing a menu to a pure html + css3 script.
In working with the code I ran into problem. When choosing a page in the menu I get that page up and showing.
With the JavaScript menu it changed only the iframe part of the page.
Is there a method to get that effect with pure html + css3?
0
Comment
Question by:Lennart Ericson
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40028543
CSS3/HTML can not do that - you have to stick with javascript if you are wanting the change the source of an iframe.

But saying that using frames for your page content is so 1990's - think about changing your design.
0
 
LVL 9

Expert Comment

by:Sar1973
ID: 40028967
The commands to change the HTML contents (such as innerHTML) can only be activated with JS scripts.
0
 

Author Closing Comment

by:Lennart Ericson
ID: 40040238
Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question