xss常見攻擊代碼有:
1.加載完畢自動觸發事件:
<body οnlοad="alert('xss')"></body>
2.使html某元素撐滿整個頁面:
<p οnclick="alert('1')" style="postion:fixed;width:100%;heith:100%"> </p>
3.增加屬性觸發事件:
<input οnfοcus="alert('1')" autofocus/>
4.特殊字符' 、" 、( 、)等等。