I am using this script to open a new window with a URL in it:
<Script Language="JavaScript">
function OrderWin(url) {
winStats='toolbar=no,location=no,directories=no,menubar=no,'
winStats+='scrollbars=yes,resizable=yes,'
if (navigator.appName.indexOf("Microsoft">=0) {
winStats+=',left=0,top=0'
}else{
winStats+=',screenX=0,screenY=0'
}
OrderWin=window.open(url,"",winStats)
OrderWin.focus()
}
</script>
The button that calls it uses this:
<FORM Name="OpenWin">
<Input Type="button" Value="Order" onClick="javascript:OrderWin('</FORM>
There are multiple buttons on the page that do the same thing, except with different URLs. The first time a button is clicked, everything works perfectly. Any time after that I get an error in IE or NS.
Any ideas on what I am doing wrong with this or what I need to do to prevent the error message?
Thanks in advance,
Jim
<Script Language="JavaScript">
function OrderWin(url) {
winStats='toolbar=no,location=no,directories=no,menubar=no,'
winStats+='scrollbars=yes,resizable=yes,'
if (navigator.appName.indexOf("Microsoft">=0) {
winStats+=',left=0,top=0'
}else{
winStats+=',screenX=0,screenY=0'
}
OrderWin=window.open(url,"",winStats)
OrderWin.focus()
}
</script>
The button that calls it uses this:
<FORM Name="OpenWin">
<Input Type="button" Value="Order" onClick="javascript:OrderWin('</FORM>
There are multiple buttons on the page that do the same thing, except with different URLs. The first time a button is clicked, everything works perfectly. Any time after that I get an error in IE or NS.
Any ideas on what I am doing wrong with this or what I need to do to prevent the error message?
Thanks in advance,
Jim