Desktop notifications allowing not working on chrome

后端 未结 1 1801
眼角桃花
眼角桃花 2021-01-29 03:56

So i want my web page to promt for validation on desktop notifications when it loads. So i added onload in body...



        
相关标签:
1条回答
  • 2021-01-29 04:30

    Try adding a semicolon to your onload event inline code:

    Check this answer actually...

    Webkit notifications requestPermission function doesn't work

    You can only use it as part of a response to a user action - i.e. you cannot do it "onload"

    0 讨论(0)
提交回复
热议问题