SyntaxError: missing ; before statement
-
The Plugin works correctly but shows two errors within the browser console when i enable the plugin.
When i enable the plugin i noticed these two errors.
SCRIPT1004: Expected ‘;’
https://www.mijngps.com (1,73772)SCRIPT1004: Expected ‘;’
https://www.mijngps.com (1,75330)SyntaxError: missing ; before statement
https://docs.microsoft.com/en-us/scripting/javascript/misc/expected-semicolon
I Narrowed it down to this portion within preventer-index.php
<script id="wpcp_disable_Right_Click" type="text/javascript"> //<![CDATA[ document.ondragstart = function() { return false;} /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Disable context menu on images by GreenLava Version 1.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ function nocontext(e) { return false; } document.oncontextmenu = nocontext; //]]> </script>
https://www.webtoolkitonline.com/javascript-tester.html shows the error.
Any idear how i can fix these two errors ?
The page I need help with: [log in to see the link]
- The topic ‘SyntaxError: missing ; before statement’ is closed to new replies.