htmlster
07-28-2011, 03:38 AM
Hi,
I'm trying to call a Js function from a test.js located in a HTML file.
I'm getting error message "Object has no method..." in Chrome. But no issues are seen in Firefox. Can any one please let me know how i can fix this.
<html>
<head>
....
....
....
<div>
<html>
<head>
<script src="test.js"></script>
<script>
function aFunc()
{
alert ("Inside aFunc");
}
</script>
</head>
<body>
</html>
....
....
....
</div>
</head>
</html>
test.js
function bFunc ()
{
aFunc ();
}
I'm trying to call a Js function from a test.js located in a HTML file.
I'm getting error message "Object has no method..." in Chrome. But no issues are seen in Firefox. Can any one please let me know how i can fix this.
<html>
<head>
....
....
....
<div>
<html>
<head>
<script src="test.js"></script>
<script>
function aFunc()
{
alert ("Inside aFunc");
}
</script>
</head>
<body>
</html>
....
....
....
</div>
</head>
</html>
test.js
function bFunc ()
{
aFunc ();
}