You need to sign in to do that
Don't have an account?
Lightning User
How can you close a Visualforce page?
Pretty self explanatory...I want to make a button that closes the visualforce page...and no, window.close() doesn't work :robotmad:
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Anyone has found a way to close a VF page????
<script>
this.parent.window.close();
</script>
It's because the iframe is embedding into the page.
R.
If I was in development mode then I'd need an extra parent (this.parent.parent.window.close()) potentially...
my html output looks like:-
<iframe frameborder="0" height="600px" id="itarget" name="itarget" scrolling="auto" src="/apex/wiz_Homepage" title="Content" width="100%"></iframe>
if you see anything like this you'll need the parent in your VF page.
Richie D wrote:
If I was in development mode then I'd need an extra parent (this.parent.parent.window.close()) potentially...
window.top() would be useful in this scenario.
Message Edited by Gillberg on 09-03-2008 06:58 AM
<apex:commandButton onClick="window.top.close();" value="Close" />