6
Quote:
Mith wrote:
What would be the problem of people opening it in a new window?
In order to avoid direct download instead of streaming the media and messing the window?s layout.
Although to prevent the "direct download" I?ve implemented the well known "No rightclick script."
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
Fo instance on the example we can see a (event.button) and event.mousedown.
I was wondering about some "event.keydown" to construct something like that:
if (event.keydown=="ctrl+n" {
return false;
=========================