Hi All,
I have a situation to execute a javascript dynamically by calling a function. The script is some what like this
<script src=”
If we paste this javascript inside the body of a webpage a survey window will popup when the web page is loaded. But I want to call this script inside a javascript function like
function callSurvey(){
//Execute the script on function call.
}
and trigger this function during unload event.
Is this feasible to execute javascript inside javascript functions. If so can any one provide some sample code snippets. Thanks in advance
Regards
Jacob