soccer362001
08-25-2003, 07:19 PM
I'm not very good with Java Script so I really need some help.
I just want the alert to come up and not the table.
Code:
function buttoncheck(e) {
if (document.all && event.button==2) {
document.all.orderwindow.style.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
if (document.layers && e.which==3) {
document.orderwindow.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
}
function sendmail() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
document.forms[0].submit()
}
if (document.layers) {
document.orderwindow.visibility="hidden"
document.orderwindow.document.forms[0].submit()
}
}
function closewindow() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
}
if (document.layers) {
document.orderwindow.visibility="hidden"
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=buttoncheck;
I just want the alert to come up and not the table.
Code:
function buttoncheck(e) {
if (document.all && event.button==2) {
document.all.orderwindow.style.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
if (document.layers && e.which==3) {
document.orderwindow.visibility="visible"
alert("Please order my HTML-source or pictures by email!")
return false
}
}
function sendmail() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
document.forms[0].submit()
}
if (document.layers) {
document.orderwindow.visibility="hidden"
document.orderwindow.document.forms[0].submit()
}
}
function closewindow() {
if (document.all) {
document.all.orderwindow.style.visibility="hidden"
}
if (document.layers) {
document.orderwindow.visibility="hidden"
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=buttoncheck;