html head title shs – carte vitale /title /head body oncontextmenu return false /body /html

Posted on

HTML stands for Hyper Text Markup Language. It is one of three languages which all the web developer should learn it to define the content of web pages. HTML describes the structure of web pages by using markup. The HTML head element is a container for metadata or data about data. HTML head is placed between the HTML tag and the body tag. HTML metadata is data about the HTML document. Metadata is not displayed. Typically metadata define the document title, styles, character set, script, link and other Meta information. The HTML tags are element names surrounded by angle brackets. Normally, HTML tags come in pairs like <p> and </p>. The first tag in a pair is the start tag, and then the second tag is the end tag. The using of the end tag and the start tag is similar, but in the end tag it is use a forward slash which inserted before the tag name. The using of HTML body tag is for stating the main content section of the HTML document. The place of HTML body tag is after the document’s head. It is exactly between the head and the HTML tags. The basic tag is written like this <body> </body>, include the document’s content which inserted between the opening and the closing tags. Usually, you will see the opening tag <body> near the top of the document and the closing tag <body> near the bottom. It is on any normal size of HTML document.

Sometime there are the problems of HTML. Even, recently we get the report from someone, he said that oncontextmenu=”return false”, is not working in Opera. In a case, in his application having the requirement for disable the right click feature. Then he used the oncontextmenu=”return false” in the body tag. Actually, it works fine in all browsers but it does not work on Opera. How he can disable the right click in Opera? Unfortunately, he has searched a lot in Google but he cannot find the solution there. By the way, have you ever got the same problem with him? How do you do to solve it? Well at the moment, in this article we will try to tell you the solution to solve it. If you find that oncontextmenu=”return false” is not working in Opera, so you can try this: document. getElmentsByTagName (“body”) [0]. Oncontextmenu = function (e) {e. preventDeafault ( ) ;}.

In other case, there are the solutions of disable mouse right click. You can add the source code to your web page to disable the right click. In this solution, you have to add the following command into your HTML <body> tag. It will disable the keyboard and mouse in Internet explorer. Oncontextmenu=”return false” onselectstart=”return false” ondragstart=”return false”. After you add the above three commands in your body tag, it will make show up similar to the following example. <BODY oncontextmenu=”return false” onselectstart=”return false” ondragstart=”return false”>. The last we hope the explanation above can useful for you.

Leave a Reply

Your email address will not be published. Required fields are marked *