<select> whith link options
How do I make an <select> whith link options?
What is a <select> whith link options? How do you make a <select> whith link options? This script and codes were developed by Stathis Nikolaidis on 30 August 2022, Tuesday.
<select> whith link options - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title><select> whith link options</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Easiest way -->
<select onchange="window.location=this.value"> <option>Choose your site</option> <option value="http://www.wikipedia.org">Wikipedia</option> <option value="http://www.stathis-nikolaidis.com">My Site</option> <option value="http://www.bing.com">Bing</option>
</select>
<!-- Alternative way -->
<select id="choice"> <option value="">Choose your site</option> <option value="http://www.wikipedia.org">Wikipedia</option> <option value="http://www.stathis-nikolaidis.com">My Site</option> <option value="http://www.bing.com">Bing</option>
</select> <script src="js/index.js"></script>
</body>
</html>
<select> whith link options - Script Codes CSS Codes
body{ margin:30px auto; width:800px; text-align:center;
}
<select> whith link options - Script Codes JS Codes
// Javascript for the Alternative way
document.getElementById("choice").onchange = function() { if (this.selectedIndex!==0) { window.location.href = this.value; }
};
Developer | Stathis Nikolaidis |
Username | stathisnikolaidis |
Uploaded | August 30, 2022 |
Rating | 3 |
Size | 1,811 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Matrix | 1,922 Kb |
Right Sidebar List | 2,164 Kb |
CSS Pseudo-Elements | 2,245 Kb |
CSS3 Simple Moving Background | 1,910 Kb |
CSS3 8bit Cristiano Ronaldo | 4,860 Kb |
Simple CSS3 Social Icons | 1,928 Kb |
CSS3 Bottle Lifts Up on Hover | 2,993 Kb |
CSS3 Change Text Selection Colour | 1,902 Kb |
CSS3 Rising Sun | 2,200 Kb |
CSS3 Rounded Corners | 1,726 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
E-mail Template | SoloMDFK | 4,871 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
Super Discount | Orrinward | 3,225 Kb |
We Simplify animation | Meodai | 48,169 Kb |
Elephants Full screen site | Orrinward | 3,981 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!