How To Show A Message Or Page On Clicking Url Link Before Redirecting To An External page
-
I have a webpage in VB.net with a link so that when users click a url link, it directs them to an external website and it works but I want to add a extra layer so that it shows a message or intermediary page before the external page is loaded to the user. For instance, show a progress bar with delay and message stating "You are leaving this website" before showing or being redirected to the external page. I am using the code below to show the external link. Can you please help with this:
<a href = "<%# Eval("LinkUrl") %>" target="_blank"> Go to link</a>
Thanks in advance
-
I have a webpage in VB.net with a link so that when users click a url link, it directs them to an external website and it works but I want to add a extra layer so that it shows a message or intermediary page before the external page is loaded to the user. For instance, show a progress bar with delay and message stating "You are leaving this website" before showing or being redirected to the external page. I am using the code below to show the external link. Can you please help with this:
<a href = "<%# Eval("LinkUrl") %>" target="_blank"> Go to link</a>
Thanks in advance
I did do something similar quite some time ago which, while probably regarded as crude today, did at least work. Essentially I had an intermediary page that took the target URL as either a query string (which could be the case here) so:
["
target="_blank"> Go to link](<%=[urltoyourintermediarypage] + )or as a variable (using an asp:hyperlink control). The page then had a delayed meta-refresh to the target but while it was displayed showed a message warning that they were leaving the site and if they didn't want to continue to hit the cancel which'd just do a javascript history back.