Luồng xử lý trong javascript
RUN
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <script language="javascript"> alert('Đoạn thứ nhất'); alert('Đoạn thứ hai'); window.onload = function (){ alert('Đoạn thứ ba'); }; alert('Đoạn thứ 4'); </script> </body> </html>
PHÓNG TO