Moving out of current domain
<p>lets say I have many anchor links on my current web page and out of which some of the links are pointing to some different domains.</p>

<p>So what I want is to show a popup/message sort of stuff to the user before moving to different domain.</p>

<p>Solution 1 : After page loads we can bind click event to each anchor link and when the user clicks on any link we can check for the external link and show the message.</p>

<p>Q1. Is there any other optimized way which is better than Solution 1 ?</p>

<p>Q2. How to check whether the link taking you out of current domain / pointing to different domain than of current ?</p>

<p>Thanks,
bond.</p>
