If you look by this address:
http://www.w3schools.com/tags/tag_script.asp
the corrected html code should be:
-------------------------------------------------------------------------
<html>
<body onload="changeIt();">
<head>
<script langauge="javascript">
function changeIt(){
var width=50;
var height=50;
document.image.width=width
document.image.height=height
}
</script>
<script langauge="javascript" src="external.js"/>
</head>
<img src="aa.jpg" name="image" onclick="changeeIt1();">
</body>
</html>
-------------------------------------------------------------------------
and external.js file:
-------------------------------------------------------------------------
var count=1;
function changeeIt1(){
if(count==2){
var amrit1=50
var pal=50
document.image.width=amrit1
document.image.height=pal
count=1;
}else{
var width=500
var height=500
document.image.width=width
document.image.height=height
count=2;
}
}
-------------------------------------------------------------------------
Hope if this helps you.
On Oct 10, 10:22 am, amrit pal pathak <
amritpalpath...@gmail.com>
wrote: