Click here to Skip to main content
15,887,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is my code:


XML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mid - Atlantic</title>
<link rel="stylesheet"  href="<?php echo base_url();?>assets/css/themes/default/jquery.mobile-1.3.2.min.css">
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/jqm-demos.css">
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/stylesheet.css" type="text/css"/>
<script src="<?php echo base_url();?>assets/javascript/jquery.js"></script>
<script src="<?php echo base_url();?>assets/javascript/mvalidation.js"></script>
<script src="<?php echo base_url();?>assets/javascript/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript">

    $(document).ready(function()
    {
     alert('Page Loaded');
    });


</script>
</head>
<body>


</form>
</body>
</html>

During page load: alert "page load" in not working..in order to make it work i need to refresh it.. i want the alert "page load" want to display as soon as page load.(no refresh needed)
Posted

1 solution

i just pasted that script tag inside body tag
it worked fine :) :)

XML
<script type="text/javascript">

    $(document).ready(function()
    {
     alert('Page Loaded');
    });


</script>
 
Share this answer
 

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