Steps for your solution are:
- Create a javascript file (a file with extension
.js
). Lets
suppose the file is moveDiv.js
- Move all the javascript code into this newly created file as it is
except
&
tags.
Give reference to this file in your HTML file as
This should start moving your button again.