3

I use a website for work which employs frustrating JavaScript links. The following post offers a solution:

How to open stubborn javascript links in a new tab or new window?

However, I haven't been able to amend the scripts offered to work for the site I'm using. Details below....

http://www.nmswebquote.co.uk/fmc/default.aspx (no public access)

javascript:__doPostBack('ctl00$ctl00$cphBaseContent$CPH_Section2$grdDetail','VIEW_ESTIMATE$6')

javascript:__doPostBack('ctl00$ctl00$cphBaseContent$CPH_Section2$grdDetail','ESTIMATE_HISTORY$6')

Can anyone please help?

3
  • 1
    __doPostBack actually submits a form. Depending on lots of stuff, you can sometimes replace the form POST with GET links. Or you can set the corresponding form to target="_blank". We would need to see the form HTML, at a minimum, to help you more. Also, in Firefox, but not Chrome, you could do a generic rewrite of __doPostBack(), but I don't feel like messing with that approach right now. Mar 20, 2016 at 22:03
  • @BrockAdams - The website has just been updated and the pesky javascript links are no longer in use. Thanks for your help anyhow.
    – Larry
    Apr 1, 2016 at 17:14
  • That's good news. Sorry I didn't get back to this question, but we are all free volunteers and RL has been taxing (literally). Apr 1, 2016 at 17:55

1 Answer 1

0

I just stumbled on this question 7 years later trying to do something similar, and Brock Adams' comment led me to an answer.

__doPostBack seems to be an ASP thing, so there's a form at the top of the page that looks like this:

<form name="aspnetForm" method="post" action="./foo.aspx" id="aspnetForm" role="presentation">

Adding target="_blank" causes all the links to open in new tabs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .