Here's what I'm doing...I have a web PDF viewer that I made for a web site...it loads up a pdf from a URL string and embeds it in the page. At the top of the page is a navigation bar in a table that is 40px tall that has various options that have to do with the website. Everything works fine, the PDF embeds fine below the navigation bar, with one exception - I have the width set to 100%, but obviously I can't set the height to 100%. I can't set a static height, as broswer windows come in different sizes, so I need to be able to have the embedded pdf strech to fill the screen. The only way I can think to do this is using javascript.
So, what I'd like to do is get the screen height, subtract 40 from it (for the nav bar) and then have that value become the height of the screen. I know I can get the screen height using document.body.clientHeight, but from there I'm lost. Should I do a document.write with the html in the middle? How do I subtract 40 from the screen height? I don't know...
Thanks,
Dan
So, what I'd like to do is get the screen height, subtract 40 from it (for the nav bar) and then have that value become the height of the screen. I know I can get the screen height using document.body.clientHeight, but from there I'm lost. Should I do a document.write with the html in the middle? How do I subtract 40 from the screen height? I don't know...
Thanks,
Dan