Back button

Introduction

To navigate through the menu by pressing the browser back button, use the backButton options and configuration.

<script>
    document.addEventListener(
        "DOMContentLoaded", () => {
            new Mmenu( "#menu", {
                backButton: {
                    // back button options
                }
            }, {
                backButton: {
                    // back button configuration
                }
            });
        }
    );
</script>

Options for the "backButton" add-on

Option Datatype Default value Description
backButton
{
close boolean false Whether or not to close a panel (or the menu) when pressing the browser back button.
}

Configuration for the "backButton" add-on

The "backButton" add-on has no configuration options.

CSS variables for the "backButton" add-on

The "backButton" add-on has no CSS variables.

API methods for the "backButton" add-on

The "backButton" add-on has no API methods.