glenn.php
05-27-2008, 12:10 PM
wonder why this would not work in FF (only opens in _self, regardless...)
function OnButton2() {
document.form.action = "process/processInsert.php";
if (form.coupon.value == "HJ5627") {
document.form.target = "_self"; // Open in a new window
} else {
document.form.target = "_top"; // Open in a new window
// document.form.submit(); // Submit the page
}
}
while this does (DOES open in _top):
function OnButton1() {
document.form.action = "prevpost.php";
document.form.target = "_top"; // Open in a new window
// document.form.submit(); // Submit the page
}
and both work in IE7...
(i'm not a javascripter)
thanks for anyone's help.
GN
function OnButton2() {
document.form.action = "process/processInsert.php";
if (form.coupon.value == "HJ5627") {
document.form.target = "_self"; // Open in a new window
} else {
document.form.target = "_top"; // Open in a new window
// document.form.submit(); // Submit the page
}
}
while this does (DOES open in _top):
function OnButton1() {
document.form.action = "prevpost.php";
document.form.target = "_top"; // Open in a new window
// document.form.submit(); // Submit the page
}
and both work in IE7...
(i'm not a javascripter)
thanks for anyone's help.
GN