Visualforce Button to Close A Window

Apr 12, 2017 | Visualforce

Written By

Easy to do with a little JavaScript!

<apex:commandbutton onClick=”window.top.close();” value=”Close”/>

NewImage

Written By

undefined

You Might Also Like

Visualforce PageMessage Samples

I can never remember what the different Visualforce page message options look like between the severity and strength so here are the options along with the code. <apex:page title="Visualforce pageMessage Samples"> <apex:form > <apex:pageMessage title="Message...

read more

Visualforce Date Popup

If you work with Visualforce and the first field on your page is a date you'll notice that when the page loads it'll automatically open the date picker which is often not desirable. To fix this simply place this Javascript on your page: <Script> function...

read more

0 Comments