Text does not appear on the page. There are no errors in the console. What is the problem?
page.html:
<!DOCTYPE html> <html> <head> <title>Javascript</title> <meta charset="utf-8"> <script src="script.js"></script> </head> <body> <script type="text/javascript">photoInsert();</script> </body> </html> script.js:
function photoInsert() { var number = 1, box, boxname ='box'+number; box = document.createElement("div"); box.id = boxname; box.innerHTML = '<p>TEXT</p>'; alert('ok'); }