简体   繁体   中英

what is best alternative to popup window?

As per project requirement what I want to achieve is to open multiple Urls say http://example1.com/track http://example3.com/info http://example2.com/history after clicking one buttons

Currently we are using js popup window code ie

window.open ("http://example1.com/track","track"); 
window.open ("http://example3.com/info","info"); 
window.open ("http://example2.com/history","history"); 

But browsers blocks these popup windows. Is there anyway I can show user all URLS without blocking?

PS. I tried iframe but one of the website does not open in iframe.

popup windows are now a day dead for malware risks Flash and popups severely limit the possible customer base

here Some Alternatives

  • Use LightBox or similar library

  • Open A new tab instead of new window

  • z-index and invisible/visible layers are the way to go

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM