variable not working

0 william appiah-dankwah · February 16, 2015
var Page = "image";


document.write(Page);


why is this simple code not working is my computer hacked?

Post a Reply

Replies

Oldest  Newest  Rating
0 mag magz · February 16, 2015
This work :

var i = document.createElement('div');
i.id = 'test';
document.getElementsByTagName('body')[0].appendChild(i);
i.innerHTML = '<img src="lion.jpg"></img>';
0 william appiah-dankwah · February 16, 2015
sorry man your codes don't work i found out why my variable was not working i forgot to put it in the body section
  • 1

Javascript

107,085 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators