JavaScript functions

From MoodleDocs
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.

The functions mentioned here are deprecated. The correct way to use JavaScript in Moodle is documented on JavaScript_guidelines.

If you want to see which JavaScript functions are available on a Moodle page you can use the Firefox Web developer extension: Information > View JavaScript.

Some things that can be there:

 // Miscellaneous core Javascript functions for Moodle
 function popupchecker(msg) {
    var testwindow ='itestwin.html', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
    if (testwindow == null)
    else {



See also