나는 W3 스쿨 웹 사이트에 자바 스크립트 자습서를 다음 오전에 코다와 함께 작동하지 않습니다와 나는 다음과 같은 코드가 있습니다W3Schools의 튜토리얼 예는 맥
<html>
<head>
<title>Hello!</title>
</head>
<body>
<script type="text/javascript">
function confirmShow
{
var r = confirm("Press one...")
if (r == true)
{
alert("Button pressed == OK")
}
if (r == false)
{
alert("Button pressed == Cancel")
}
}
</script>
<input type="button" onclick="confirmShow()" value="Show Confirm Box" />
</body>
</html>
을 내가 경고 결코 쇼 코다 또는 사파리에서 미리 때마다 쪽으로.
미리 감사드립니다.
주제 : W3Schools는 종종 구형이거나 실천이 좋지 않습니다. 더 나은 대안을 찾으려면 http://stackoverflow.com/questions/646032/whats-the-best-javascript-tutorial – outis
http://w3fools.com/ –