javascript 获取当前域名

<script language=”javascript”>host = window.location.host;document.write(host)</script>