var table_of_contents = "http://www.lnr.cjb.net/"; // change to your default frame page var blank = "about:blank"; // blank page var content = (location.search) ? location.search.substring(1, location.search.length) : table_of_contents; function fillFrame() { parent.lnr.location.href = content; }