make it working, still openning blank.... Strange
On Jul 15, 6:52 pm, Ben Lisbakken <
lisba...@google.com> wrote:
> Hey Bronson --
>
> You are supposed to keep the more link to point to Google. However, if you
> just want to make it so that it doesn't open a new window then you could use
> DOM traversing to grab the link, then set the target to be nothing.
>
> The quickest to write (and least efficient to run) would be to do something
> like:
> var anchors = document.getElementsByTagName('a');
> for (var i = 0; i < anchors.length; i++) {
> if (anchors[i].href == TheMoreLinkHref && anchors[i].target == "_blank") {
> anchors[i].target = "";
> break;
> }
>
> }
>
> -Ben
>