• grassroots
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

My requirement is to automatically close VF Page after clicking the save command button.

 

 

<script>
function closeRefresh()
{
top.parent.window.opener.location.href = "/003/o";
top.parent.window.close();
}
</script>

<apex:commandButton value="save" action="{!save1}" onclick="javascript&colon;closeRefresh();"/>

 

 

 

I am clicking on the link on the List view section of the consoleconsole. VF Pages open which have a save button. Which when clicked updates some values on the contact Object and should close this opened VF Page.

 

I am trying this with as shown above but not able to get it to work. Please advise!!!Thanks..

 

 

Message Edited by renuami on 08-19-2009 01:18 PM