Enigma 78 Posted January 25, 2010 Report Share Posted January 25, 2010 I'm looking for a solution that prevents clicks to open in a new window.Currently a site (and not only this one but a lot more) use _blank for every page, thus opens in a new window which can't work with the bot. Is there a way to get around this?Can we manipulate the page to open in the same window? Quote Link to post Share on other sites
greencat 18 Posted January 25, 2010 Report Share Posted January 25, 2010 I'm looking for a solution that prevents clicks to open in a new window.Currently a site (and not only this one but a lot more) use _blank for every page, thus opens in a new window which can't work with the bot. Is there a way to get around this?Can we manipulate the page to open in the same window? Scrape the link and then nav to it. It may even be possible to find and replace all of the target="_blank" attributes. 1 Quote Link to post Share on other sites
Enigma 78 Posted January 25, 2010 Author Report Share Posted January 25, 2010 Scrape the link and then nav to it. It may even be possible to find and replace all of the target="_blank" attributes. Thanks buddy. How am i do it?With $replace? Quote Link to post Share on other sites
Enigma 78 Posted January 25, 2010 Author Report Share Posted January 25, 2010 Nevermind i already scraped the links and use that. I was not able to find a _blank tag in the site source but it does open all links in a new window.Maybe a php trick? Quote Link to post Share on other sites
greencat 18 Posted January 25, 2010 Report Share Posted January 25, 2010 Nevermind i already scraped the links and use that. I was not able to find a _blank tag in the site source but it does open all links in a new window.Maybe a php trick? Great news. Could be a javascript rather than a php trick though. I started to look at a replace solution - but it was looking fairly painful. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.