Jump to content
Sign in to follow this  
ktoya

click IE link to new window

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • Create New...