JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css">
<a href="http://www.google.com" class="external">Google</a>
JavaScript
$( function()
{
$( 'a.external' ).click( function( e )
{
if( window.confirm( 'This link is external. Are you sure you wish to continue?' ) )
{
window.open( $( this ).attr( 'href' ) );
}
e.preventDefault();
} );
} );