<div id="content" > <script src="myJS.js"></script> <script> displayBiography(); </script> <iframe src="cwExample.pdf" name="iframe1" id="pdf"></iframe> </div> <div id="leftBar"> <br><br> <button class="button" onclick="displayBiography();"> Biography </button> <h3> Samples of Work </h3> <button class="button" onclick="toShow();" target="iframe1"> AFT </button> </div>
var content = document.getElementById("content"); var biography = "<p> Text here </p> " ; function displayBiography() { "use strict"; content.innerHTML = biography; var iframe = document.getElementById('pdf'); iframe.style.display = 'none'; } function toShow() { }
function toShow() { var iframe = document.getElementById('pdf'); iframe.style.display = 'block'; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)