# Simple Movement in JavaScript

**URL:** <https://forum.kirupa.com/t/simple-movement-in-javascript/329116>\
**Category:** web dev\
**Created:** [July 22, 2012, 12:56pm UTC](https://forum.kirupa.com/t/simple-movement-in-javascript/329116 "2012-07-22T12:56:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAFAAAAA](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@GAFAAAAA](https://forum.kirupa.com/u/GAFAAAAA)\
**Post date:** [July 22, 2012, 12:56pm UTC](https://forum.kirupa.com/t/simple-movement-in-javascript/329116/1 "2012-07-22T12:56:54Z")

</div>

Hi,

I’m building a website, I have a fixed navigation menu at the top, this is great until you want to see all the page, so I have been trying to make it hide when something is clicked. The menu script looks quite simply like this \<div class=“Menu” id=“Header”\>. \*\*I want this Div to move up off the page by 180px when a button, image or text is clicked, then I want it to return back onto the page when that button or whatever is clicked again. \*\*Any help at all would be great.

Thanks in advance

Gareth
