W
wpollans
I have sent this to the seleniumRC list - apologies to those who've
had to see it twice
Is it possible to rewrite a link? I want remove/ignore the onclick
handler and have it open in a new tab. I have no control over the
page source.
How can I do this with Javascript?
The links are of the form:
<a class="ccc" href="hhh" onclick="xxx">Some Text </a>
I'd like to rewrie it as:
<a class="ccc" href="hhh" target="_blank">Some Text</a>
and then send a 'click' to the rewritten link.
I'm trying to simulate the user clicking the link with the middle
mouse
button OR selecting "open in new tab" from the context menu - this is
FF-2.0.0.6.
had to see it twice
Is it possible to rewrite a link? I want remove/ignore the onclick
handler and have it open in a new tab. I have no control over the
page source.
How can I do this with Javascript?
The links are of the form:
<a class="ccc" href="hhh" onclick="xxx">Some Text </a>
I'd like to rewrie it as:
<a class="ccc" href="hhh" target="_blank">Some Text</a>
and then send a 'click' to the rewritten link.
I'm trying to simulate the user clicking the link with the middle
mouse
button OR selecting "open in new tab" from the context menu - this is
FF-2.0.0.6.