To suppress the Leave Site warning message ("Leave Site? Changes that you made may not be saved.") in Oracle Apex, just follow the below one instruction.
Open your page and in the page property settings, turn off the Warn on Unsaved Changes button under the Navigation setting. Below is the screenshot of this:
Save the changes and run the page to test.