Here is a code I used.
Code:
<div onClick='document.getElementById("someID").src="https://onedrive.live.com/embed?cid=0912027297A21B07&resid=912027297A21B07%218989&authkey=AD_ol5nd3vdkIvY&em=2&wdStartOn=1&wdEmbedCode=0&wdPrint=0";'>PDF test 1</div> <br><bR>
<iframe id='someID' frameborder="1" scrolling="no" width="100%" height="355"></iframe>
But now I changed it to an <a> tag.
Code:
<a onClick='document.getElementById("someID").src="https://onedrive.live.com/embed?cid=0912027297A21B07&resid=912027297A21B07%218989&authkey=AD_ol5nd3vdkIvY&em=2&wdStartOn=1&wdEmbedCode=0&wdPrint=0";'>PDF test 1</a> <br><bR>
<iframe id='someID' frameborder="1" scrolling="no" width="100%" height="355"></iframe>
this works on my studies page, but what I want is when I click on a link on my index page, that it brings me to my studies page, and also open my study in the iframe that is on the studies page.
I tried alot of codes including the web page you sent me too, but thanks for letting me know about stuff on the <a> tag and javascript.
Bookmarks