Click to See Complete Forum and Search --> : opening links from a button script
paulp
09-12-2003, 10:46 AM
hi - can someone please tell me how i can open links in a new (or, more specifically, the parent) window from this script:
http://www.qiksearch.com/cross-browser-ticker.htm
thanks very much in advance!
paul
<input type="button" onClick="parent.location.href='http://pages.com/page.html';" value="Page.com - Page in Parent Window">
[J]ona
paulp
09-12-2003, 10:54 AM
that's how i would open links with a normal button but this script is structured as follows:
<form name="qiksearch_ticker"><input type="button" name="qiksearch_ticker" onclick="goURL();" width="400" border="0"></form>
function goURL()
{
if(this.document.qiksearch_ticker.qiksearch_ticker.value==ticker_msg[ticker_msg.length-1])
{
location.href=ticker_url[ticker_msg.length-1];
}
else
{
location.href=ticker_url[count-1];
}
}
Change location.href to parent.location.href.
[J]ona
paulp
09-12-2003, 10:59 AM
thank you!
Originally posted by paulp
thank you!
My pleasure. :)
[J]ona