<script language="JavaScript">
<!--
var helphint = "<p>Hello <font color=red>websbook.com</font></p>";
function showhint(){
alert(helphint);
}
function showhint2(){
var re= /<\S[^>]*>/g;
helphint = helphint.replace(re,"");
alert(helphint);
}
// -->
</script>
<a href="#" OnClick=showhint()>顯示原字符串</a><br>
<a href="#" OnClick=showhint2()>顯示剔除HTML代碼后的字符串</a>
更多信息請查看IT技術(shù)專欄
2025國考·省考課程試聽報(bào)名