Hello,
In the following code I am trying to change the innerHTML of the div dynamically when pressed the button.
I want to make this div with this inner HTML redirected to another page.
With the foolowing script it redirects just after I view the page.
Do you have a solution for that?
<html>
<head>
</head>
<script language="javascript">
function do_ee()
{
document.getElementById('ee').innerHTML='<html><% Response.Redirect("moduller.asp") %></html>'
}
</script>
<div id="ee">
aaaa
</div>
<input type = "button" onclick = do_ee()>
</html>
Then you can get it done either using AJAX thats one way
Other way is get the contents of moduller.asp inside the div and keep it hidden and show it when required