onafterprint ပွဲ
ဥပမာ
စာမျက်နှာတစ်ခုစတင်ပုံနှိပ်သောအခါတွင် JavaScript ကိုလုပ်ဆောင်ပါ-
<body onafterprint="myFunction()">
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
စာမျက်နှာတစ်ခု စတင်ပုံနှိပ်သောအခါ သို့မဟုတ် ပုံနှိပ်ဆွေးနွေးမှုသေတ္တာကို ပိတ်လိုက်သောအခါတွင် စက္ကူပုံးကိစ္စ ဖြစ်ပေါ်သည်။
အကြံပြုချက်- onafterprint event သည် ယခင် print event နှင့် ဆန့်ကျင်ဘက်ဖြစ်သည် ။
Browser ပံ့ပိုးမှု
Event | |||||
---|---|---|---|---|---|
onafterprint | 63 | Yes | Yes | Not supported | Not supported |
အထားအသို
HTML တွင်-
<element onafterprint="myScript">
JavaScript တွင်-
object.onafterprint = function(){myScript};
JavaScript တွင် addEventListener() method ကိုအသုံးပြု၍-
object.addEventListener("afterprint", myScript);
မှတ်ချက်- addEventListener () နည်းလမ်းကို Internet Explorer 8 နှင့် အစောပိုင်းဗားရှင်းများတွင် ပံ့ပိုးမထားပါ။
နည်းပညာဆိုင်ရာအသေးစိတ်
ပူဖောင်း: | မရှိ |
---|---|
ပယ်ဖျက်နိုင်သည်- | မရှိ |
ပွဲအမျိုးအစား- | ပွဲ |
ပံ့ပိုးထားသော HTML တဂ်များ- | <body> |
DOM ဗားရှင်း- | အဆင့် 3 ပွဲများ |