Help with response.redirect
Posted on 2013-09-29
I am trying to put together a banner script for my site. I am using classic ASP.
In a hyperlink - the target property sets the reference for where the hyperlink will lead to - for example target='_blank' will open a new window or tab as the case maybe ...
Response.redirect sends the output to the redirected page in the same browser window. So I can execute some code and depending on the result I can redirect execution to any number of scripts which will always output to the same page.
What would be the best way for that to be accomplished ? Remember, I need to execute some code to process the click on the hyperlink and then redirect the user to a new window, with the URL specified in the hyperlink.
I currently am using a hyperlink with the href property pointed to an asp which processes some data and then redirects the user to the page where I want the user to go - thus taking focus away from my site, which I would like to avoid.