Write a xHTML program to take input from the user and move the image to the corresponding location(position), using Javascript.…