2008年1月21日 6:16 am #5707
メンバー
HTMLでは=006600]ですがJavaScriptでは=006600]です。
JavaScriptでのコメント化スクリプト
JavaScriptエンジンは、SCRIPT要素の始めに文字列「」をJavaScriptパーサから隠すために必要とされる。
<!– to hide script contents from old browsers
function square(i) {
document.write("The call passed ", i ," to the function.","
“)
return i * i
}
document.write(“The function returned “,square(5),”.”)
// end hiding contents from old browsers –>
とW3Cの勧告はなってます。