Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <script> <!-- function confirmRefresh() { var okToRefresh = confirm("Do you really want to refresh the page?"); if (okToRefresh) { setTimeout("location.reload(true);",1500); } } // --> </script> <p><a href="javascript:confirmRefresh();">Refresh Page</a></p> <img src="/pix/samples/4s.jpg" alt="Sample image">
Preview