Skjul link i statusbar
Hej jeg har en hjemmeside hvor jeg ikke kan lide at man kan se hvilket html dokument man klikker sig ind på i menuen, og heller ikke må kunne højreklikkeMin .js fil ser ud som følger:
---script start---
function click(){
if (event.button==2){
alert('Sorry!! This page is copyright-protected')}
}
document.onmousedown=click
function hidestatus()
{
window.status='Look at this !!! No status change!!!'
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT | Event.CLICK)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
document.onclick=hidestatus
---script slut---
Og jeg kan bare IKKE få de to functions til at virke, hvad gør jeg galt?
