I have links on my page that open pop up windows when I click on them. The link is <a href=\"./WindowTest2?word="+sword+"\" onClick=\"return openWindow(this,'myPage')\">text</a>. This in a servlet class and the code for the 'openWindow' function is also inside the headers of this servlet. This servlet calss WindowTest2 that is another servlet. WindowTest2 makes database connections and gets the text out. I want to able to resize the pop up depending on the text. The code for opening the window that I am using is win = window.open(href, windowname, 'width=0,height=0,screenX=350,screenY=300,top=300,left=350,scrollbars=yes'); 350 by 300 is the initial sizing but I want to be able to manipulate it everytime depending on the test in the database that the WindowTest2 servlet pulls out.
Anybody got any ideas/suggestions.