works for me/should work for U :) function term(word) { var file2open = "../glossary/" + word + ".htm"; var terms=window.open(file2open,'terms','<options>'); terms.focus(); } <a href="javascript:term('recombinant');>recombinant</a>