Microsoft KB Archive/167594

= FP: How to Redirect a Browser from a List Box Choice =

Article ID: 167594

Article Last Modified on 5/28/2007

-

APPLIES TO


 * Microsoft FrontPage 97 Standard Edition
 * Microsoft FrontPage 1.1 Standard Edition
 * Microsoft FrontPage 1.0 for Macintosh

-



This article was previously published under Q167594



For a Microsoft FrontPage 2000 version of this article, see 197959.

For a Microsoft FrontPage 98 version of this article, see 194091.



SUMMARY
This article provides four examples of how to use Microsoft Visual Basic Scripting Edition (VBScript) or JavaScript to create a drop-down control that opens a specific Uniform Resource Locator (URL) based on the choice you make from a list.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Example 1 -

A drop down scripted URL list

  http://www.microsoft.com http://www.msn.com http://www.microsoft.com/frontpage http://www.microsoft.com/support/frontpage   select case document.sendme.dropit.selectedindex case 0 navigate("http://www.microsoft.com") case 1 navigate("http://www.msn.com") case 2 navigate("http://www.microsoft.com/frontpage") case 3 navigate("http://www.microsoft.com/support/frontpage") end select 

Example 2 -

   http://www.microsoft.com  http://www.msn.com  http://www.microsoft.com/frontpage  http://www.microsoft.com/support/frontpage 

 dim choice choice = document.SendMe2.Cleaner.selectedindex navigate document.SendMe2.Cleaner.options(choice).value </SCRIPT>

Example 3 -

<script language="JavaScript">

Example 4 -

 </Script> <form method="POST"> <select name="dest" size="1"> Example One Example Two Example Three Example Four Example Five Example Six Example Seven Example Eight Example Nine ExampleHome Page (Do Not Use) Really, Do Not Use This! <INPUT TYPE=BUTTON VALUE="Submit Example" ONCLICK=setaction(form.dest.selectedIndex)>

Additional query words: 97 kbusage kbhowto kbprg kbnetwork drop down menu dropdown hyper link hyperlink kbcode kbmacro fphtml fpscript listbox list box

Keywords: kbhowto kbprogramming KB167594

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.