I have a page that contains a div(id=contents) which i fill with content via a httpXMLrequest object.
To add the response content i use
Code: Select all
document.getElementById('contents').innerHTML = response;I have checked the inserted scripts and the syntax is correct.
Is there anyway to make this inserted javascript execute?
here is an example
Code: Select all
<script type="text/javascript">
function inserted_function()
{
alert('inserted function call');
}
</script>
<a href="javascript:inserted_function();\">call inserted function</a>