I am developing a page in jsp and mysql, which consists of 3 frames one for the upper bar, one for the central bar and one for a ore on the left. In the upper bar there is a link, to disconnect from the application, which opens a modal with a form that sends the request to the server to disconnect. The problem is that this modal window is displayed behind the central frame.
here the image.
Here the modal code.
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Log out</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="logoutServlet.do">
<div class="modal-body">
<p class="lorem">Estas seguro que deseas salir?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="submit" class="btn btn-primary" formtarget="_top">Salir</button>
</div>
</form>
</div>
</div>
This modal is created in the "upper frame" page in the upper bar and called it from the "Exit" button, but instead of being displayed outside of all the frames, it is shown behind. If someone could help me, it would be great, thank you.
I tried using style: "z-index: 999;" in the div of the modal but only the page in the top bar obscures me and the modal is still displayed behind the central frame.
here the first line of the modal with style z-index 999
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" style="z-index: 999;">