Fixit – Pop up windows

Pop-up windows are not supported on many mobile devices, and using them can have unpredicatable results. This test checks that you are not using pop up windows in your markup.

Pop-up windows

Pop-up windows are specified using the target attribute in link elements in your markup. A value of _blank in the target attribute indicates a pop-up window. This test checks for a target attribute in each of the elements a, link, form, base. Acceptable values, which don't cause a pop up are: "_self", "_parent", "_top". If any of these elements has a target attribute whose value is not one of these values, then the test will fail e.g.

Permitted:
<a href="not_a_popup.htm" target="_self">This is not a pop-up<a>

Not permitted:
<a href="a_popup.htm" target="_blank">A pop-up<a>

 

Reference

This test is based on a W3C mobileOK best practice. See http://www.w3.org/TR/mobile-bp/#POP_UPS for more details

Leave a Reply

Exclusive tips, how-tos, news and comment

Receive monthly updates on the world of mobile dev.

Other Products

Market leading device intelligence for the web, app and MNO ecosystems
DeviceAtlas - Device Intelligence

Real-time identification of fraudulent and misrepresented traffic
DeviceAssure - Device Verification

A free tool for developers, designers and marketers to test website performance
mobiReady - Evaluate your websites’ mobile readiness

© 2024 DeviceAtlas Limited. All rights reserved.

This is a website of DeviceAtlas Limited, a private company limited by shares, incorporated and registered in the Republic of Ireland with registered number 398040 and registered office at 6th Floor, 2 Grand Canal Square, Dublin 2, Ireland