if
(
window.
functionName
)
{
functionName
(
)
}
else
{
alert
(
'function not found'
)
}