xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] How to Disable Right Click in browser window using java script


Subject: RE: [xsl] How to Disable Right Click in browser window using java script
From: Aradhana Liyanage <aradhanal@xxxxxxxxxxxxx>
Date: Mon, 18 Mar 2002 10:05:01 +0600

this will help u
<HTML>
	<HEAD>
	
	<SCRIPT LANGUAGE="JavaScript">
	 function click(e) {
                  if (document.all) {
                    if (event.button==2||event.button==3) {
                      oncontextmenu='return false';

                    }
                  }

                  if (document.layers) {
                    if (e.which == 3) {
                      oncontextmenu='return false';
                    }
                  }
                }

                if (document.layers) {
                    document.captureEvents(Event.MOUSEDOWN);
                }
                document.onmousedown=click;          
                                
                function handleKeyDown() {
                    if (window.event.keyCode == 116) {     
                        event.keyCode=0;
                        event.returnValue=false;   
                    }
                }
                document.onkeydown = handleKeyDown;             
                 </SCRIPT>
	
	</HEAD >

	<BODY BGCOLOR="#E0E0E0" TEXT="#000080" oncontextmenu="return false"
ondragstart="return false" onselectstart="return false">
	U can not right click on this page
	</BODY>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor