DEV Community

Discussion on: How can I create a text box that redirects to certain pages depending on the content?

Collapse
 
kevinschweikert profile image
Kevin Schweikert
if (variable == 1111) {
window.location = url
}
else if  (variable == 1112) {
window.location = other_url
}