I have this piece of code that opens a contrained window when a particular link is selected. Unfortunately, the way the link is setup right now means I have to create a new object everytime I want another link to a different page. This is the code I have so far (with much help I must note):
<!--
function newWin() {
newWin = window.open("prod/tea.html","newWin"," width=600,height=600,menubar=0,status=0,toolbar=0,directories=0,scrollbar=0,resizable=0");
newWin.focus();
}
//-->
<a href=http://www.webdeveloper.com/forum/archive/index.php/"" onClick="newWin();">
So ideally, rather than having to change both my object and my href link every time I have a different URL, I would love simplify it somehow. Any ideas (I'm new at this by the way)?
<!--
function newWin() {
newWin = window.open("prod/tea.html","newWin"," width=600,height=600,menubar=0,status=0,toolbar=0,directories=0,scrollbar=0,resizable=0");
newWin.focus();
}
//-->
<a href=http://www.webdeveloper.com/forum/archive/index.php/"" onClick="newWin();">
So ideally, rather than having to change both my object and my href link every time I have a different URL, I would love simplify it somehow. Any ideas (I'm new at this by the way)?