<script type="text/javascript" src="prototype.js"></script>
<script language="javascript">
function hover()
{
new Ajax.Updater('dataLayer', 'ajax_hover1.html',
{
method: 'get',
evalScripts: true,
onComplete: function(){
document.getElementById('dataLayer').style.display='inline';
}
});
}
</script>
<a href="#" onclick="hover()">show</a>
<div id="dataLayer" style="display:none; position:absolute;"></div>
ajax_hover1.html contains
<script language="javascript" type="text/javascript">
document.write("testing");
</script>
When i execute, new window is opening.
Please help me. Actually i am using jsp files instead of html. In both cases i am getting same out put
Thanks in advance