2015-08-20 63 views
-2

我想在應用程序主頁完全加載後顯示一個警告框。打開頁面完成加載顯示警告框

+3

[你嘗試過什麼?](http://mattgemmell.com/what-have-你試過/) – Blachshma

+0

Page_LoadComplete – user662285

+0

複製:[在整個ASP.Net頁面加載時調用Java腳本警報函數](http:// stackoverflow。 com/questions/10091445/calling-java-script-alert-function-when-entire-asp-net-gets-load?rq = 1) – Blachshma

回答

0

使用jQuery libaray

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 

然後使用

$(function() { 
    alert("ready!"); 
}); 

$(document).ready(function() { 
    alert("ready!"); 
});