Choopernickel
04-10-2003, 07:55 PM
my javascript, in a src'd file:
var targetWindow = "trextras";
function oneNewWindow() {
targetWindow = "trextras";
document.multirecords.target = targetWindow;
document.multirecords.oneNewWindow.checked = true;
}
function manyNewWindows() {
targetWindow = "_blank";
document.multirecords.target = targetWindow;
document.multirecords.manyNewWindows.checked = true;
}
my html:
<input type="Radio" id="oneNewWindow" onclick="oneNewWindow()" />
<img src="img/oneNew.gif" title="Open all new pages in the same window"
onclick="oneNewWindow()" style="cursor:pointer" />
<input type="Radio" id="manyNewWindows" onclick="manyNewWindows()" />
<img src="img/allNew.gif" title="Open each new page in its own new window"
onclick="manyNewWindows()" style="cursor:pointer" />
I trigger the oneNewWindow() function with a <script> element later in the HTML, and it runs and there's no problem.
Shizzle don't want to work onclick (onclizzle?): IE gives me the ever-so-popular "Object doesn't support this property or method" error. How? It's already run once. I know the functions are good. What am I missing?
Any thoughts? Thanks in advance.
var targetWindow = "trextras";
function oneNewWindow() {
targetWindow = "trextras";
document.multirecords.target = targetWindow;
document.multirecords.oneNewWindow.checked = true;
}
function manyNewWindows() {
targetWindow = "_blank";
document.multirecords.target = targetWindow;
document.multirecords.manyNewWindows.checked = true;
}
my html:
<input type="Radio" id="oneNewWindow" onclick="oneNewWindow()" />
<img src="img/oneNew.gif" title="Open all new pages in the same window"
onclick="oneNewWindow()" style="cursor:pointer" />
<input type="Radio" id="manyNewWindows" onclick="manyNewWindows()" />
<img src="img/allNew.gif" title="Open each new page in its own new window"
onclick="manyNewWindows()" style="cursor:pointer" />
I trigger the oneNewWindow() function with a <script> element later in the HTML, and it runs and there's no problem.
Shizzle don't want to work onclick (onclizzle?): IE gives me the ever-so-popular "Object doesn't support this property or method" error. How? It's already run once. I know the functions are good. What am I missing?
Any thoughts? Thanks in advance.