This is the html file
And this is the .js file
onclick event is not working .....
Code:
<html> <body> <body onload="changeIt();"> <head> <script langauge="javascript"> function changeIt() { var width=50; var height=50; document.image.width=width document.image.height=height } </script> </head> <img src="/home/administrator/Desktop/aa.jpeg" name="image" onclick=src="/var/www/external.js/changeeIt();"> </body> </html>
Code:
function changeeIt() { if(count==1) { var width=500 var height=500 document.image.width=width document.image.height=height count=2; } else if(count==2) { var amrit1=50 var pal=50 document.image.width=amrit1 document.image.height=pal count=1; } }
onclick event is not working .....
Comment