HOWTO: auto open on page load
-
It’s a little dirty, but it works
1. Insert shortcode for popup on page and save
2. open page and copy link address of popup trigger (text, image, etc)
– usually looks like this: “javascript:AnythingPopup_OpenForm(“AnythingPopup_BoxContainer1″,”AnythingPopup_BoxContainerBody1″,”AnythingPopup_BoxContainerFooter1″,”380″,”260″);”
3. paste link address in between <script></script> on the same pageEg: <script>javascript:AnythingPopup_OpenForm(“AnythingPopup_BoxContainer1″,”AnythingPopup_BoxContainerBody1″,”AnythingPopup_BoxContainerFooter1″,”380″,”260”);</script>
Note: The popup trigger must also be on the same page and visible (if you hide, it wont work)
so I ended up with these 2 line on my page (text)
[AnythingPopup id=”1″]
<script>javascript:AnythingPopup_OpenForm(“AnythingPopup_BoxContainer1″,”AnythingPopup_BoxContainerBody1″,”AnythingPopup_BoxContainerFooter1″,”380″,”260”);</script>if there’s a better way – please let me know!
enjoy!
- The topic ‘HOWTO: auto open on page load’ is closed to new replies.