• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Refresh

Can ayone help with the following problem...
I am using the following code to close a popup window:

<a href="" onclick="window.close(); return false;" style="color:black">Display Results</a>    

I want to refresh the Main window when the popup is closed.
0
nido
Asked:
nido
1 Solution
 
YogCommented:
<script>
function doit() {
window.close()
}
</script>

<a href="javascript:doit()" style="color:black">Display Results</a>    

cheers.
0
 
msdixonCommented:
try this,

<a href="" onclick="window.close(); window.opener.location='originalLocation.html'; return false;" style="color:black">Display Results</a>
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now