Sign in to follow this  
Followers 0
ktoya

click IE link to new window

6 posts in this topic

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



I can't do it because _IECreate() is a direct visit other than referrer from link.

Share this post


Link to post
Share on other sites

What site are you accessing? Please explain why you need the referrer information to carry over to the new tab.

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.
2 people like this

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  
Followers 0