-
Notifications
You must be signed in to change notification settings - Fork 13
/
xss4.html
16 lines (12 loc) · 849 Bytes
/
xss4.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html><body>
Mighty <div id='namediv'></div>, compose your email now:
<form>To: <input type='text'></input><br>
Subject: <input type='text'></input><br>
Content: <textarea></textarea><br>
<input type="button" value="Send!"/>
</form>
<script>
var urlparser = new URLSearchParams(window.location.search);
document.getElementById('namediv').innerHTML = urlparser.get('name');
</script>
</body></html>