<script type="text/javascript">
function contxt() //定义函数
{
alert("哈哈,调用函数了!");
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我" onclick="contxt" />
</form>
</body>
</html>
然后就错了
function contxt() //定义函数
{
alert("哈哈,调用函数了!");
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我" onclick="contxt" />
</form>
</body>
</html>
然后就错了
2015-07-23
最新回答 / 红山果好好
function openWindow(){ var opennew=confirm("yes or no"); if (opennew==true) { var newurl = prompt("open web page","http://www.imooc.com/"); } else { return; } if(newurl!==null){ window.open([newurl],'_b...
2015-07-23
var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
2015-07-23