hi
I use the below code to show modal when page is load.
now I want after 5 seconds the Modal will disappear
how I can do it?
<script type="text/javascript">
window.onload = $(function settime() {
$('#myModal1').modal('show');
});
</script>
<style type="text/css">
.behtopM {
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
}
#imagebeh {
width: 100px;
height: 100px;
border: 1px solid red;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="d-sm-inline-flex">
<div class="row">
<div class="modal fade" id="myModal1">
<div id="Modal1">
<asp:Image ID="Image1" runat="server" CssClass="behtopM" ImageUrl="~/Image/behtop/behtop-main.gif"></asp:Image>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
Best regards
Neda