Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ONCONTEXTMENU

Featured Replies

Hi All,

 

I am having problem with page, when do validation with W3C.

The script is applied on images.

<script type="text/javascript">

function buttonClick()

{

if (event.button== 2)

{

alert('You can not Save the Image using Right-Click');

return false;

}

}

</script>

and on image:

<img src="http://www.ucet.in/images/mec-img01.jpg" title="Mechnical Engineering" alt="" oncontextmenu="return false;">

 

Any one can help me? what I have to do?

 

Thanks in advance.

 

SHIRISH

 

page link:http://www.ucet.in/collegetour.htm

 

 

 

 

there is no attribute "ONCONTEXTMENU" . …al Engineering" alt="" oncontextmenu="return false;"></td>

 

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

 

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

 

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Arh i hate javascript validation errors, by far the most common. Sorry I can't help lol not much use I know but I'll keep an eye out to see if anyone can fix it.

 

(I'll keep quiet about your table design :pp)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.