Jump to content

Recommended Posts

Posted

Hi, I need to click some links in a webpage and show them in new window or new tab for each link.

I use IEAction(link,"click") to open a link, but if there is no "target=_blank" in a <a href> tag, the target page is not showing in the new window. what I can do to click the link to a new window?

normally you can middle mouse click the link to open. is there any function to simulate?

  • 1 year later...
Posted

How about setting the target attribute:

 

$oObject.setAttribute("target") = "_blank"; $oObject is the link object
;now you can "click" the link, and it will be opened in a new window.

thanks, this help me a lot.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...