こんにちは
今、このようなコードを書いて、『greet.htmlで保存』→『apacheにあるhtdocsフォルダに保存』→『ブラウザを開きhttp://localhost/greet.htmlで検索』
しても
Not Found
The requested URL /greet.html was not found on this server.
と出てきます。
なぜでしょうか
書いたコードはこれです。
<!DOCTYPE html> <html lang="ja"> <html> <head> <h1>LavaScriptを動かせるか?</h1> </head> <body> <script type="text/javascript"> function greetMe(yourName) { alert("Hello " + yourName); } greetMe("World"); </script> </body> </html>
ちなみにこのサイト様から引用したものがあります。
https://developer.mozilla.org/ja/docs/Web/JavaScript/Guide/Introduction#What_is_JavaScript
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/10/31 05:28
2015/10/31 07:31