I need to use javascript(jquery if applicable) to trigger my modal call if the result of my function is true and the referring URL is not of the domain
The desire is that the user visits the main splash page and as long as they have not been redirected there by the site itself (via timeout on session, invalid login credentials, etc) it displays the message so:
function showModalIf()
{
if (checkFunction)
{
if(////// REFERRING URL not from this site)
Trigger Modal Call
else
Don't Do anything else
}
}