I have this simple little JavaScript code that is loaded as an external file on all my documents. However, one system that I tried it on consistantly has JavaScript errors in Internet Explorer with each and every file. Other systems with the same version of NT and Service Pack level and the same version of Internet Explorer do not have the popup errors. Does anyone see anything in this code to account for it? I'm also loading a CSS file on each HTML file, does the order that the JavaScript and CSS files are being loaded matter?
The first line returns a specific URL if the file is loaded by itself rather that from the menu and the rest minimizes the right-mouse popup. This has me pulling out my hair because the exact same code it working fine on another site but with an NT Server. The problem is with a Unix server, though I don't know what that could have to do with it.
Thanks!
Don
[tt]
<!--//
if (top == self) self.location.href = "
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}
// -->[/tt]
The first line returns a specific URL if the file is loaded by itself rather that from the menu and the rest minimizes the right-mouse popup. This has me pulling out my hair because the exact same code it working fine on another site but with an NT Server. The problem is with a Unix server, though I don't know what that could have to do with it.
Thanks!
Don
[tt]
<!--//
if (top == self) self.location.href = "
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}
// -->[/tt]