<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
window.onload=function(){
var b = 'name';
document.getElementById(b).innerHTML = 'none';
}
</script>
</head>
<body>
<div id="name" style="width: 300px; height: 300px; background: red"></div>
</body>
</html>