jtocClickedHeading

Custom javascript event triggered after a click of a heading from the Table of contents.

document.getElementById('wpj-jtoc').addEventListener( 'jtocClickedHeading', ( e ) => console.log( 'JTOC CLICK', e ) );
Was this page helpful?