Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About koorosh13hm

  • Rank
  1. Hi everyone, I have tried to assign an event to a member inside an object by using an anonymous function. In the code below the result would not be gained and I even see no errors in the console. Could you please help me fix this issue? Thank you very much in advance. <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>2js</title> <style type="text/css"> div.box { background-color: hsl(0, 0%, 0%); margin-left: 2px; width: 2px; height: 2px; margin-top: 2px;
  2. WOW, awesome. Thanks to you my problem is solved. Thank you very much
  3. In the chrome Inspect Element section yhe width and height of the div.box is shown as 0.
  4. Actually I have tried this line of command too: var wrappers = document.getElementsByClassName("wrapper")[0]; and have removed document as told, But there is no trace of any new div shown!!!!!
  5. Hi everyone, I have been trying to fix this issue by visiting the forums here and there and also tried to do exactly what I learned from them yet, I am unable to add a div to another one. The error message in the console is : Uncaught TypeError: Cannot read property 'appendChild' of undefined And the code that I have been using is as follows. Could you please help me with this issue? <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>1js</title> <style type="text/css"> div.box { backgr
  • Create New...