hi,
i havent a clue about javascript just so you peeps know
i've been trying to get a pop up to refresh the window it came from (opener) and then close when it's finished.
I thought i had got it from looking around google, but everytime i try this script i get this error
Line: 7
Char: 3
Error: 'window.opener.location' is null or not an object
here are my pages.
parent.html
<html>
<head>
<title></title>
<script language="javascript">
function reloadIt() {
window.opener.location.reload();
return true;
}
function closeThis(){
window.close()
}
function doIt() {
reloadIt();
closeThis();
}
</script>
</head>
<body>
<A onClick="javascript:win1=open('one.htm','title1','width=200,height=200');">click</a>
</body>
</html>
one.htm
<html>
<head>
<title></title>
</head>
<body>
<form>
<input type="button" value="change2" onclick="opener.doIt();">
</form>
</body>
</html>
could someone please point me in the right direction.
i'm using ie6 for windows xp.
thanks, Comms