Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

325
Views
Is this a right code to disable MathJax right-clicking menu?

I use the code below

<script type="tet/x-mathjax-config">
MathJax.Hub.Config({
  showMathMenu: false
});
</script>

to disable right-clicking menu on my math website, however It seems not to work. Is it an outdated code or something?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

For Mathjax version 3, the information is here: https://docs.mathjax.org/en/latest/options/menu.html

Use this configuration:

<script>
    MathJax = {
        ...
        options: {
            enableMenu: false
            ...
        }
    }
</script>

For version 2 the corresponding setting is documented here: https://docs.mathjax.org/en/v2.7-latest/options/hub.html#configure-hub

and involves the showMathMenu property listed in the question.

about 4 years ago · Juan Pablo Isaza Report

0

Well, if you want to disable the right clicking, you can use the event listener for it and prevent the default behavior, something like:

window.addEventListener('contextmenu', (e) => {
  e.preventDefault();
}, false);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!