나는 mshtml을 사용하여 IE 확장을 작성하고 있습니다. C#이나 자바 스크립트를 통해 사용자에게 표시되는 최근 알림의 텍스트를 가져 오는 방법이 있습니까?최근 자바 스크립트 경고의 텍스트를 얻으십시오
미리 감사드립니다.
// let's save the alert first
var _super_original_alert = window.alert;
// and now we overwrite it
window.alert = function(s){
// do something with the received string
// i will just log it, but you might want to send the string via
// ajax/jsonp to a remote server
console.log(s)
// call the original intended alert
_super_original_alert(s)
}
그것은 : 당신이 납치 경우
방금 전에 경고 한 것을 저장하지 않으시겠습니까? – sdepold
실제로 저는 웹 사이트 용 모니터를 작성하고 있으며, 응용 프로그램은 사용자의 단계를 추적합니다. 그래서 나는 어떤 행동의 결과로 경고가 발생했는지 알아내는 방법을 모른다. – BrillStar
그 웹 사이트에 js를 삽입 할 수 있습니까? – sdepold