hi all
anybody know how to call a js file in a js file like this....
main.js:
document.write("<script type='text/javascript' src='second.js'>
<\/script>");
second.js:
funciton alertMe() {
alert("hi");
}
mainjsp.jsp:
<script type ="text/JavaScript" src="main.js"></script>
<script>
alertMe(); // should call the funciton whcih is in second.js
</script>
THis is not working. any idea of wht is the prob?
thanks in adv
--
Regards,
Deva.
______________________________________
Naturesoft Pvt Ltd | Chennai - 600 004
Work : +91 44 2461 7193 Ex: 34
Email : [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]