Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
me have two project A and B which have javascript functions.now me want to access the javascript function of A in B project.plz help me out of this problem
..thanks in advance i am waiting for your valueble solutions...
the below funtion is of A project me want to call that function in project B onclick event...
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script>
        function updateMyRentals()

        {
         
                alert("its Fine");
        }
    </script>
</head>
    
<body>
    <h2> Test Function </h2>
    <input type="button" onclick="updateMyRentals()" value="Call From Local Page" />
</body>
</html><pre>
Posted

1 solution

 
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