L
Luke
Hi I'm using the following to generate a form. User enters search term
and a url will be open
<script type="text/javascript">
function ScopusSearchGo(){
var url="http://gateway.ovid.com.libproxy1.nlb.gov.sg/ovidweb.cgi?
T=JS&NEWS=N&PAGE=titles&SEARCH=";
var url2=".mp&D=econ"
var searchInputscopus = document.getElementById("ScopusSearchInput");
document.location=url + encodeURIComponent(searchInputscopus.value) +
url2;
}</script>
<div>
<div id="enterText" style="position: absolute; left: -1000em; width:
20em;">Enter your search terms:</div>
<input type="text" id="ScopusSearchInput" size="30"
onKeyPress="handleKeyPress(event,this.form)" />
<input type="button" value="Search" onclick="ScopusSearchGo()"/>
</div>
My limited understanding is that it will open in the browser, the part
that says "url" + whatever is typed + the part that says url2. Is that
correct?
It seems to work fine. But currently it replaces the page i am on.
What do i change to make it open a new tab or even window? (I'm not
picky, either will do).
Thanks
and a url will be open
<script type="text/javascript">
function ScopusSearchGo(){
var url="http://gateway.ovid.com.libproxy1.nlb.gov.sg/ovidweb.cgi?
T=JS&NEWS=N&PAGE=titles&SEARCH=";
var url2=".mp&D=econ"
var searchInputscopus = document.getElementById("ScopusSearchInput");
document.location=url + encodeURIComponent(searchInputscopus.value) +
url2;
}</script>
<div>
<div id="enterText" style="position: absolute; left: -1000em; width:
20em;">Enter your search terms:</div>
<input type="text" id="ScopusSearchInput" size="30"
onKeyPress="handleKeyPress(event,this.form)" />
<input type="button" value="Search" onclick="ScopusSearchGo()"/>
</div>
My limited understanding is that it will open in the browser, the part
that says "url" + whatever is typed + the part that says url2. Is that
correct?
It seems to work fine. But currently it replaces the page i am on.
What do i change to make it open a new tab or even window? (I'm not
picky, either will do).
Thanks