Hi. What's the best way to display an image, disabling the user's ability to right-click on it?
I believe you have to use <body oncontextmenu="return false">. Would the following work?
var x = "<head><\/head><body oncontextmenu="return false"><img src='temp.jpg' border=0><\/body>"
top.document.open()
top.document.write(x)
top.document.close()
Since this is a frameless site, I don't think this would work, at least would never get to the close()...Dennis
I believe you have to use <body oncontextmenu="return false">. Would the following work?
var x = "<head><\/head><body oncontextmenu="return false"><img src='temp.jpg' border=0><\/body>"
top.document.open()
top.document.write(x)
top.document.close()
Since this is a frameless site, I don't think this would work, at least would never get to the close()...Dennis
Comment