We're currently working on a very streamlined update for the main page of our site and have run into an issue involving links...
Basically, we need to add a drop box with a ton of links for returning users. We don't care that they be Google friendly or visable on the page. The problem is that we also want to avoid code bloat. Thus, an on-page standard drop box won't cut it.
Is it possible to do this via external JS? If so, could someone point me to an example of such code?
One simple way is to use the external file to define the select box's entire code string as a variable, let's call it "box". Then all you need on the HTML page is the call to the external .js file and a script element in the proper spot: