Click to See Complete Forum and Search --> : Quick JavaScript query
piersk
07-24-2003, 01:58 PM
Just a quickie: Using the JScript DOM, how do I get the parent of the window that I've opened to refresh? I think its something like:
parent.window.refresh(), but I'm not sure.
Anyone got any ideas?
goldbug
07-24-2003, 02:08 PM
Not sure if you mean JScript or Javascript, but this works for Javascript:
<script type="text/javascript">
<!--
function parentRefresh()
{
var opnr = window.opener;
opnr.location.reload();
}
// -->
</script>
Put that in the 'popup' window and call accordingly.
piersk
07-25-2003, 05:33 AM
Didn't think there was a difference between JScript and JavaScript. I did mean JavaScript tho...
Moonglobe
07-25-2003, 05:53 AM
JScript is M$'s 'EMCAScript compatible' support language for ASP. it's based on Javascript.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.