summaryrefslogtreecommitdiffstats
path: root/dom/html/test/file_refresh_after_document_write.html
blob: ebf3272e08760e952ad46cc2c624e6bb54ae4cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
<head>
<title></title>
</head>
<script>
function write_and_refresh(){
  document.write("This could be anything");
  location.reload();
}
</script>
<body>
<button id='test_btn' onclick='write_and_refresh()'>
</body>

</html>