Hi
I built a html page with a single button which suppose to open new window which shows XML file...
I want to disable right click mouse in the "new window" which is being opened after button hit...
I do know how to disable the right click inside an ordinary html page : "<body oncontextmenu="return false;">"
but how can i do it in the new opened window... i tryed several ways but without luck
:/
here is the code:
<html>
<body oncontextmenu="return false;">
<script language="javascript" type="text/javascript">
function showExternalXml(){
w=800
h=800
l=200
t=200
globalHTML="<html><head><title>name.xml</title></head><frameset rows='100%'><frame src='c:\\dir\\name.xml'></frame></frameset></html>";
window.open("javascript:opener.globalHTML",'HeavyXml',',resizable=1,width='+w+',height='+h+',left='+l+',top='+t+'');
}
</script>
<table border="1" style="cursor: pointer ">
<tr>
<td bgcolor=#CCCCCC>
<input type="button" value="Display Xml" onclick="showExternalXml() "style="cursor: pointer "> </input>
</td>
</tr>
</table>
</body>
</html>
Thanks ahead.
Daniel.