hello, im guessing this question is quite trivial. i have a page setup as follows.
MAIN PAGE
<html>
<head>
</head>
<body>
<div id='innerlogin'><iframe src='INNER PAGE'></iframe></div>
</body>
</html>
INNER PAGE
<html>
<head>
<script type="text/javascript">
function RemoveDiv(){
d = parent.document.body;
d_nested = parent.document.getElementById("innerlogin");
throwaway = d.removeChild(d_nested);
}
</script>
</head>
<body>
........
</body>
</html>
now i am using asp.net and after all has been said and done with the INNER PAGE i would like to fire off the javascript 'RemoveDiv' to get rid of the div and the inner page. i realise this could be done using asp.net and no javascript at all. but my page is already heavily consistent of controls and i wish to remove the strain of the server as much as possible and allow the client to take care of presentation.
the problem is this does not work as you may have guessed so can anybody spot what ive done wrong ? or am i doing it completely wrong