• Fimi X8 SE 2020 đầu tiên tại Việt Nam
  • chuyên phụ kiện DJI OSMO POCKET CHÍNH HÃNG
  • Fimi Palm - Gimbal Camera mini siêu hót
  • Bộ tản sáng flash Godox AK-R1 kèm ngàm SR-1
  • Phụ kiện Mavic Mini - Mavic Air 2 chính hãng DJI
  • Black Friday sale off

Thay đỗi style thông báo hiển thị alert cho tất cả trình duyệt

As a frontend developer, one of the goals throughout the development is to ensure the design looks consistent and identical in all platforms. Well, that's a life-long battle against different browsers' standards, and one of the uncontrollable element is browser alert dialogues.

If you don't know what am I talking about, take a look at this image, and spot the different.

There are totally different, the dimension is different, the default text is different, the button arrangement is different, color is different, the transition of displaying it or hiding it is different, the close button is inconsistent.

If you really want to take control of browser's alert dialogues, you can make use of Javascript solution. Here we have basicModal - an easy-to-use dialog system for modern web-apps. It doesn't come just the standard dialogue to display information, it also has prompt and login dialogues.

You can chain the modal, display dialogue in sequence. It also comes with a handful of useful functions so you have full control to react to user's response.

It's no longer bind to the browser, and you can style it accordingly to your website branding.

More Details


Share facebookShare facebook

Facebook Comments

Tin Cùng Chuyên Mục

Trang 1 / 1

Bạn đã đọc tin này chưa ?

Go Top