function listLink(product) { url = document.getElementById(product).value; window.open(url); }
This allows me to set a value in a select drop down list to be a url and then it opens a new window to that link.
I need to add a statement to it and I am not sure how. Basically I want it to open up a new window when it is a absolute url. But if I put something like a # sign I want it to just do nothing or refresh the page either one would work. I just don't want it to open a new window right now it opens a new window that is blank.