craig
04-06-2003, 11:41 PM
I am using the following script.
It opens a second(sized) window with the corect URL. (which it is supposed to)
But it opens a second window(advances) from the main interface and places [object] in it.
If I click the "Back" browser button it returns to the original interface.
How can I get it to remain in the main(original) interface window?
<html>
<head>
<title>untitled</title>
<script type="text/javascript" language="JavaScript">
function gotoURL(form) {
var radGrp = associations.Assoc;
for (var i=0; i<radGrp.length; i++)
if (radGrp[i].checked) {
location = radGrp[i].value; return;
}
alert('Please choose one of the Associations on the list.');
}
</script>
</head>
<body>
<form method="post" name="associations">
<input name="Assoc" type="radio" value="javascript:window.open('http://www.proamrodeo.com/database/CCPRAschs.html','assocWindow','width=800,height=500,left=10,top=120,screenX=10,screenY=120')"checked>CCPRA<br>
<input name="Assoc" type="radio" value="javascript:window.open('http://www.proamrodeo.com/database/CPRAschs.html','assocWindow','width=800,height=500,left=10,top=120,screenX=10,screenY=120')">CPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 3')">CPRA(TX)<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 4')">CRRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 5')">GCPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 6')">ICA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 6')">IMPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 7')">IRCA<br><br>
<a href="#" onMouseover="window.status='View Association Schedules.'; return true"
onMouseout="window.status=' '; return true" onclick="gotoURL(this.form)">Schedules</a>
</form>
</body>
</html>
It opens a second(sized) window with the corect URL. (which it is supposed to)
But it opens a second window(advances) from the main interface and places [object] in it.
If I click the "Back" browser button it returns to the original interface.
How can I get it to remain in the main(original) interface window?
<html>
<head>
<title>untitled</title>
<script type="text/javascript" language="JavaScript">
function gotoURL(form) {
var radGrp = associations.Assoc;
for (var i=0; i<radGrp.length; i++)
if (radGrp[i].checked) {
location = radGrp[i].value; return;
}
alert('Please choose one of the Associations on the list.');
}
</script>
</head>
<body>
<form method="post" name="associations">
<input name="Assoc" type="radio" value="javascript:window.open('http://www.proamrodeo.com/database/CCPRAschs.html','assocWindow','width=800,height=500,left=10,top=120,screenX=10,screenY=120')"checked>CCPRA<br>
<input name="Assoc" type="radio" value="javascript:window.open('http://www.proamrodeo.com/database/CPRAschs.html','assocWindow','width=800,height=500,left=10,top=120,screenX=10,screenY=120')">CPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 3')">CPRA(TX)<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 4')">CRRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 5')">GCPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 6')">ICA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 6')">IMPRA<br>
<input name="Assoc" type="radio" value="javascript:alert('URL 7')">IRCA<br><br>
<a href="#" onMouseover="window.status='View Association Schedules.'; return true"
onMouseout="window.status=' '; return true" onclick="gotoURL(this.form)">Schedules</a>
</form>
</body>
</html>