I have some terms on my website that are hyperlinked and target a new window. The window has a brief definition of the term. Right now the targeted window is a full sized window, which looks stupid because the definition is only about 2-3 sentences long. What code do I use to specify the exact size of the window? In other words, I want the targeted window to be a small popup with the brief definition for these terms. Travis
If I remember correctly its something along the lines of: <a href="your-link" onClick="popup = window.open('your-link', 'PopupPage', 'height=500,width=500,scrollbars=yes,resizable=yes'); return false" title="Link">Link</a> With the bit in bold being the bit you need. Play around with the height/width to determine the size you require.
Perfect thanks! Just one more question...how do I add the "Close Window" link on the popup/targeted window so that they can just click on that to close the window? Travis
I used <a href="#" onClick="popup = window.close() ">Close Window</a> and it works in all browsers but IE. For that they can just hit the cross in the top right. I am sure their is a way to do this with javascript but I don't know that sorry.