Say Page1.htm is displaying the output with a button for the printer friendly page (Page2.htm). In my javascript for Page2.htm I have in initPage2 function that is called from the onload of Page2. I'm using one javascript file for both Page1.htm and Page2.htm (Page.js). My code looks something like this:
Expand|Select|Wrap|Line Numbers
- function initPage2() {
- document.Page2.txtTest2.value=document.getElementsByName('txtTest1').value; // Doesn't work, but
- document.Page2.txtTest2.value="99"; // Works fine
- }
Any suggestions would be appreciated!
Bob