You need to sign in to do that
Don't have an account?
Mhlangano Khumalo
How to generate a pop up window on a visualforce page automatically when a user opens a page
When the user clicks link on his email it opens up a site/ VF page & on that first page I want the pop to show immediatly without the user clicking a button. The popup works but the problem is you have to click the button first before it shows.
I got the code from here http://www.salesforcegeneral.com/salesforce-modal-dialog-box/
I got the code from here http://www.salesforcegeneral.com/salesforce-modal-dialog-box/
why so complicated. Just do it by using JavaScript only:
the example opens the www.google.com site.
If you really need a modal dialog, use jquery ui "dialog" instead:
http://jqueryui.com/dialog/
Best,
Andreas
All Answers
This is how it should be done
<apex: page action="{!showPopoup}">.
This will show the popup on load
why so complicated. Just do it by using JavaScript only:
the example opens the www.google.com site.
If you really need a modal dialog, use jquery ui "dialog" instead:
http://jqueryui.com/dialog/
Best,
Andreas