TAILIEUCHUNG - The javascript anthology 101 essential tips tricks hacks - phần 6

Những vấn đề này không chỉ là câu hỏi của khả năng sử dụng, nhưng khả năng tiếp cận. Ví dụ, người sử dụng màn hình đọc không có thể được thông báo bởi các thiết bị của họ có một cửa sổ mới đã mở ra | How Do I Minimize the Problems These issues are not just questions of usability but of accessibility as well. For example screen-reader users may not be notified by their devices that a new window has opened. This could obviously cause confusion if they then attempted to go back in the browser history they can t . The same thing might happen for a sighted user if a window opens at full-size you and I may be familiar with using the taskbar to monitor open windows but not all computer users are they may not even realize that a new window has popped up. If you re going to use popups looking out for issues like these and being generally sensitive to their impacts will make your popups friendlier to users and less of a strain on your conscience. Also bear in mind that from a developer s perspective popup windows are not guaranteed to work most browsers now include options to suppress popup windows and in some cases suppression occurs even if the popup is generated in response to a user event. You may be able to allow for this as you would for situations in which scripting was not supported by ensuring that the underlying trigger for the popup still does something useful if the popup fails. Or you might have your code open a window and then check its own closed property to see if it s actually displayed we ll look at this technique in the next solution . But neither of these approaches is guaranteed to work with every browser and popup blocker out there so for this as much as the usability reasons it s simpler and better to avoid using popups whenever you can. How Do I Minimize the Problems What we need to do is establish some golden rules for the ethical use of popups Make sure any triggering link degrades properly when scripting is not available. Always include the status bar. Always include a mechanism to overflow the content either allow window resizing or allow scrollbars to appear or both. Don t open windows that are larger than 640x480 pixels. Order the print .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.