Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

new tab instead of iframe on mobile detection
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4082
Page 1 of 1

Author:  greg [ 3. May 2016, 02:36 ]
Post subject:  new tab instead of iframe on mobile detection

Just wondering if it's possible to have the iframe contents open in a new window if the device is mobile or screen is resized small...

Any help with this would be appreciated!

Author:  TinyWebGallery [ 5. May 2016, 11:56 ]
Post subject:  Re: new tab instead of iframe on mobile detection

You mean that there is a redirect to the page in the iframe if a mobile device is detected?

You can use the browser detection and forward to a page which does a reload of the real content in a new tab.
The browser detection does not work if you simply make the screen smaller. There you would need custom Javascript for this.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/