Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Navigation / Menus >> Select Menu Popup Sized Window


Code Snippet </> Info


Snippet Name: Select Menu Popup Sized Window

Description: A select menu with complete control of window size and toolbar options.


Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser


Example: View Code Demo

Note: Adjust the menubar=0, toolbar=0, etc... and width & height to your specifications. Add as many links as you need.

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2019-12-10 00:27:37

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
Copied To Clipboard!

<html> <head> <title>Select Menu Popup Sized Window Javascript Code Snippet</title> </head> <body> <script> // Begin Select Menu Popup Sized Window from https://snapbuilder.com Free Public Codes Library // Free to use as long as the credit lines remain in place <!-- Hide the script from old browsers -- function surfto(form) { var myindex=form.dest.selectedIndex // Change the attributes that read menubar=0,toolbar=0, etc... and width & height to your specifications window.open(form.dest.options[myindex].value,"main","menubar=1,toolbar=0,location=0,directories=0,status=1,copyhistory=0,width=500,height=535"); } //--> </script> <center> <form name="myform"> <select name="dest" size="1"> <option value="https://snapbuilder.com">SnapBuilder.com</option> <option value="https://www.google.com">Google.com</option> <option value="http://www.netscape.com">Netscape</option> <option value="http://www.infoseek.com">InfoSeek</option> </select><input type="button" value="Go!" onClick="surfto(this.form)"> </form> </center> <br /> <p>[ YOUR CONTENT GOES HERE ]</p> </body> </html>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library