<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>