在文章內容頁里,怎么獲取當前瀏覽器的url地址
<!--復制地址開始-->
<script language="javascript" type="text/javascript">
function oCopy(obj){
obj.select();
js=obj.createTextRange();
js.execCommand("Copy")
}
document.writeln ("<b>本頁地址</b>:<input id=\"thisweburl\" type=\"text\" size=\"68\" value=\"" + location + "\" onclick=\"oCopy(this);window.alert('復制完成,請將本頁推薦給你的朋友!')\"/>")
</script>
<!--復制地址結束-->
<script language="javascript" type="text/javascript">
function oCopy(obj){
obj.select();
js=obj.createTextRange();
js.execCommand("Copy")
}
document.writeln ("<b>本頁地址</b>:<input id=\"thisweburl\" type=\"text\" size=\"68\" value=\"" + location + "\" onclick=\"oCopy(this);window.alert('復制完成,請將本頁推薦給你的朋友!')\"/>")
</script>
<!--復制地址結束-->