しかもエラーメッセージも(いつものことですが)エラーの原因とは微妙に噛み合っていないので経験がないと分からない内容ですし。
備忘録としてメモ
以下ソース
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title>chkbox</title> | |
<body> | |
<input type=checkbox> | |
<input id=inp> | |
</body> | |
<script> | |
var d=document | |
// error:typeプロパティの値を取得できませんでした。このコマンドはサポートされていません。 | |
// inp.type = 'checkbox' | |
var i=d.createElement('input') | |
i.type = 'checkbox' | |
d.body.insertBefore(i) | |
i=d.createElement('input') | |
d.body.insertBefore(i) | |
// error:typeプロパティの値を取得できませんでした。このコマンドはサポートされていません。 | |
// i.type = 'checkbox' | |
i=d.createElement('<input type=checkbox>') | |
d.body.insertBefore(i) | |
</script> | |
</html> |
試していませんがradioでも同様の筈。
0 件のコメント:
コメントを投稿