I think it is an easy questions but I am new in JavaScript
Why buttons \"but3\" and \"but4\" not working when I try moveBy or moveTo a new window?
thanks
The error message says
Permission denied to access property 'moveBy'
To access the properties of another window, it needs to be in the same domain.
Your code works if you replace www.google.com with a file in the same directory.