I was wondering if you could tell me how to get a collapsable box to appear on on a website using javascript?

What I want on the website is to resize the screen (to like a mobile for example) and it replaces the nav bar with a drop down box that has to be clicked on.

Is this possible?

Thanks in advance to all!

```css
#navLocation {
 position:relative;
 float: right;
 top: 55;
 right: 125;
 font-size: 155%;
}
```

```html
<div id="navLocation">

<a id="container" id="navLocation" href="index.html">home</a>&nbsp; <a href="about.html">about</a>&nbsp; <a href="projects.html">projects</a>&nbsp; <a href="news.html">news</a>&nbsp; <a href="contact.html">contact</a>

</div>
```