Home  >  Article  >  Web Front-end  >  What's wrong with my code_html/css_WEB-ITnose

What's wrong with my code_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:02:46894browse

I just learned Html and JS and wrote the following two files. I feel that Hello world should be displayed, but actually nothing is displayed. Where did I go wrong?

Test.html content



Example
< meta charset="utf-8">








Test.js content
function Myfunc()
{
document.writeln("Hello world");
}


Reply to discussion (solution)




Example










Test.js content
function Myfunc()
{
alert("Hello World!');
document.writeln("Hello world" ; script type="text/javascript" src="Test.js"> Just write

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn