Drop Down Menu Links

wxdqz

New Member
Hi, thanks for looking,

Im going to be using a drop down menu for the navigation of my site. The drop down menu is in an Iframe within the main index.html page. When someone selects an option it should open the new page in the parent window. Here's what ive got so far;

<script type="text/javascript">
menuLink=function(url) {
window.open(url)
</script>
<body>
<SELECT onChange=menuLink(this)>
<OPTION selected>Menu</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/link1>Link 1</OPTION>
<OPTION value=link2>Link 2</OPTION>
<SELECT>

Also VERY important to note, link1 will open <!-- m --><a class="postlink" href="http://www.mydomain.com/link1/">http://www.mydomain.com/link1/</a><!-- m --> and the page you are on now is <!-- m --><a class="postlink" href="http://www.mydomain.com/index.html">http://www.mydomain.com/index.html</a><!-- m -->

Am I on the right track? Im a JS newbie...so if you can help me get this right, please be descriptive...thanks! Al
 
Back
Top