Hi,
Is there any way to call function in another javascript , as in Object Oriented languages ?
Anushka
Is there any way to call function in another javascript , as in Object Oriented languages ?
Anushka
sampleA.js
function CallmethodA()
{
//some logic
}
sampleB.js //this will call sampleA.js methods
function CallMethodB()
{
//some logic
CallmethodA()
}
<html>
<head>
<script type="text/javascript" src="sampleA.js"></script>
<script type="text/javascript" src="sampleB.js"></script>
<script type="text/javascript">
function checking()
{
call1();
}
</script>
</head>
<body onload="checking()">
</body>
</html>
Comment