In many browsers, the default type of a button is "submit." When such a button appears in a form element - as would HTML added to a question in Lighthouse Studio - clicking on it causes the page to attempt to submit. To prevent this, you can explicitly change the button's type like this:
<button type="button">Click me</button>
The below script should hide the navigation buttons for thirty seconds. If you wish to modify the time, remember that it is in milliseconds rather than seconds.
<script>
$(document).ready(function(){
var submit = $('#previous_button, #next_button');
$(submit).css('visibility', 'hidden');
var interval = setInterval(function(){
$(submit).css('visibility', 'visible');
clearInterval(interval);
}, 30000);
})
</script>