Hi,
I am trying to call simple java script function in my struts application.

Actually in my application when i click on a link it goes to the action class ,fetch the url /cust/symbian/htdocs/diag/symbian.htm

which i append to the tomcat home and make an absolute path i.e.

C:/Program Files/jakarta-tomcat-5.0.25/webapps/V3Portal/cust_static_pages
/152.110.149.250/cust/symbian/htdocs/diag/symbian.htm


Now i want to call a function check().

Code is written below :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script language="JavaScript" type="text/javascript">
function check()
{
alert("Hi");
}
</script>
</head>



<body onload="check();">

</body>
</html>

This code is work when i directly click on the page or open it in IE(Internate Explorer).

But in my application i could not call javascript fuction.Howerver in jsp pages there is no problem in function calling.

This is very much irritating to me because after calling function i have to proceed.