Home > Web Front-end > HTML Tutorial > The display is blank, I typed it according to the code in the book_html/css_WEB-ITnose

The display is blank, I typed it according to the code in the book_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:05
Original
886 people have browsed it

<html>	<head>		<title> 标题栏 </title>		<script language ="JavaScript">			var i;			var j;		document.write("<table border = \"1\">");				for(i = 1;i<=9;i++) {				document.write("<tr>");				for(j = 1;j<=9;j++) {					if(i>=j) {						document.wirte("<td>" + i + " * " + j + " = " + i*j + "</td>");					} else  {						document.write("<td> </td>");					}				}				document.write("</tr>");			}			document.write("</table>");		</script>	</head>	<body>	</body></html>
Copy after login


I want to display a table, a multiplication table. But the display is blank,
is the same in IE6 and Firefox.
I am a super novice. Thank you


Reply to the discussion (solution)

if(i>=j) {
   document. wirte( "" i " * " j " = " i*j "");
is write

if(i>=j) {
document. wirte("" i " * " j " = " i*j "");
Yes write
Thank you so much. It seems that his eyes are indeed failing. A small mistake took me a long time to discover

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template