Hi guys!
I have a line of code:
<iframe id="ChildFrame" class="_page_frame_style" src=""></iframe>
So I have three buttons (id: "one", "two", "three").
And I need to change src of iframe by clicking on respective id.
Idea is:
1. When page is loaded no frame is displayed. (display:none)
2. When click on "one" button - shows one.html.
3. When click on "two" button - shows two.html. And so on...
4. Make a button to return ChildFrame into display:none.
I've been googling for it, but every try failed.
Thanks for each reply!
function change(button){iframe.src=button.innerHTML+".html";}and<button onclick="change(this)">one</button>