Forum Moderators: open

Message Too Old, No Replies

Does oncontextmenu etc affect search engine?

oncontextmenu,onselectstart, and ondragstart effect

         

jscjso

11:28 pm on Jun 8, 2008 (gmt 0)

10+ Year Member



I know oncontextmenu, onselectstart, and ondragstart are not W3C validated, but these are very useful features I want to keep in my html page.

Since these features block visitors from clicking and drawing the content of the page, do these features also block or affect the search engine to find its keywords on the page?

martinibuster

11:58 pm on Jun 8, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



As long as the elements are not written by JavaScript, but are already existing and merely shown/hidden by JavaScript then you should be good. For instance, look in the code, are the nav links within list elements?

jscjso

4:21 pm on Jun 9, 2008 (gmt 0)

10+ Year Member



Thanks for a quick reply. Let me confirm this.

I do not use JavaScript, I use the <body> statement in my html as:

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">

You are saying that the search engines still can find key words for its search in this page.

I do not understand your last sentence. The oncontextmenu, onselectstart, and ondragstart features cover the whole page. They prevent visitors to copy my pictures. All my links are in the page. I can click and jump to a different page using the link in the page.

martinibuster

4:57 pm on Jun 9, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Search engines do not obey JavaScript, only the browsers do. So as long as the links are there in the HTML then the search engines will see them. You can test that out by running Xenu Link Sleuth and verifying if the spider follows the links.