I am trying to set up a web page whereby you can click on a word and a little window pops up telling you the definition of that word. Each defn is a unique little text file.
I want to pass the name of the defn from the link eg
and pass it into the function:
and for it to window.open"../defns/filename" etc etc
I have managed to get it working just by declaring eaach little defn as a variable up at the top but this is not practical to do it through all my web pages (lots of defns)
So perhaps you can help and tell me how to do it or a better way to do it.