Вопрос

I currently have a dropdown menu that will direct the user to different URLs based on what they have selected. However, when I disable javascript and select items from the dropdown, the user remains on the same page. What is the best way to handle this for users who have JS disabled?

Это было полезно?

Решение

Based on the onsubmit tag you included, I will assume you are using a <select> menu. Without JavaScript, you need either a different element, like a CSS-based dropdown menu with actual links, or a server-side solution to accept the form submission and redirect to the URL of the selected item, if the URL is in the value.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top