Click here to Skip to main content
15,896,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I make an alert box to show after a page is reloaded without using the
body onload="myFunction()"
?
Posted

1 solution

jQuery :
XML
<script type="text/javascript">
    $(document).ready(function(){
        alert("Loaded");
    });
</script>

JavaScript
XML
<script type="text/javascript">
    window.onload = function(){
        alert("Loaded");
    }
</script>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900