Is there a script I can add to a button to close a pop up layer and return to the top of the page?
Is there a script I can add to a button to close a pop up layer and return to the top of the page?
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Just tried Gary.
It is a bit tricky to understand first off but essentially you set the pop-up layer to not close automatically to be able to check what code the Close icon is using in Preview (looking at the browser status bar).
You then add an actual Close button to the pop-up layer and add that code, setting the pop-up layer to close automatically.
Finally, you add xr_top(); after the code your copied across to amble gently up to the top of the page.
All this goes into the Web Properties > Link > Link to web control box.
My example isI replaced the %27s with double quotes; either work.javascript:xr_ppc("xr_xp4"); xr_top();
Example file: JS_Popup Close & Top.xar
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
The link returns to top but does not close the pop up. But I am probably doing something wrong.
At the top of the page is a blue rectangle with a quote and a link CLICK HERE TO READ ENTIRE REVIEW
Click this and scroll to the bottom of the review.
Thanks Acorn
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Why not just paste the URL of the index page into the 'Link To Web Or Email Address' section of the button? This would make it refresh the index page.
Chris - This does indeed reload the page but not at the top. This is why it's tricky.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Bookmarks