hisoka

Members
  • Content count

    469
  • Joined

  • Last visited

Community Reputation

2 Neutral

About hisoka

  • Rank
    Member
  1. I already did . However I still do not understand what are the additional hex values after 50 4B 05 06
  2. and what represent these additional hex values after 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ??
  3. Hello glad to be again in w3schools forum when I opened a zip file in hex editor , I noticed that after the end of the file , there are additional hex values . For example in a zip file I opened in a hex editor there was like this : 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 50 4B 05 06 hex values represent the end of the zip file . However , I do not understand what represent these additional hex values after the end 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ??
  4. Could you please tell me how does exactly a missile launch code work ? I have a website here which is of course fake https://whitehouse.gov1.info/launch/launch.html and I saw codes like this : pyHAvqTp3Mxye8vscUGr+92wvuhK6eyL9QBseQ4gsX3Fcnr2xO 9cMJHoSdEv98hVymwhLsOgLzigJHPTfxA0Ani7EWNaZx1hLaRm pyHAv2KZ9gRLgLtwb4spOh0Xb1cFjsZ3tcbo6CnuUT+wOy74p7 mQINBE+UYy0BEADeUhQF1JVfDU9/OAvWD3FajAyQPjAeiOoVRfukM0L8qFQCieCN pyHAvqTp3Mxye8vscUGr+92wvuhK6eyL9QBseQ4gsX3Fcnr2xO 9cMJHoSdEv98hVymwhLsOgLzigJHPTfxA0Ani7EWNaZx1hLaRm pyHAv2KZ9gRLgLtwb4spOh0Xb1cFjsZ3tcbo6CnuUT+wOy74p7 mQINBE+UYy0 how does the whole process work?
  5. var x = document.anchors ; for ( var i = 0 ; i < 5 ; i++) { console.log(x[i]); } gives as a result and even var x = document.anchors ; for ( var i = 0 ; i < 5 ; i++) { alert(x[i]); } gives undefined I do not know how to get the result . Any help
  6. finding HTML objects : document.anchors I would like to enumerate the first 5 <a> elements using for loop but I failed : var x = document.anchors ; for ( var i = 0 ; i<=5 ; i++) { console.log(x);} This what I got HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] HTMLCollection [ ] I would like to get the first 5 elements . Any hint ?
  7. Now to understand : document.getElementById(id).onclick = function(){code} I wrote this : <html> <body> <p id="here">w3schools.invisionzone.com</p> <script> function change() { var x = document.getElementById('here'); x.style.color = "red"; } </script> <form> <button type="button" onclick="change()" >Click Me!</button> </form> </body> </html>
  8. So I did like this to get the parent of the child element : var b = document.getElementsByTagName('a')[2] ; var x = b.parentNode ; console.log(x); and I got : <div style="float:left;width:50%;overflow:hidden;height:44px"> then did like this : x.removeChild( and it was removed
  9. For example in this script : <body> <div class='w3-container top'> <a class='w3schools-logo' href='http://www.w3schools.com'>w3schools<span class='dotcom'>.com</span></a> <div class='w3-right toptext w3-wide'>THE WORLD'S LARGEST WEB DEVELOPER SITE</div></div> <div class='w3-navbar w3-card-2 w3-slim topnav' id='topnav'> <div style='overflow:auto;'> <div style='float:left;width:50%;overflow:hidden;height:44px'> <a href='javascript:void(0);' class='topnav-localicons w3-hide-large w3-left' onclick='open_menu()' title='Menu'>☰</a> <a href='/default.asp' class='topnav-icons fa fa-home w3-left' title='Home'></a> <a href='/html/default.asp' class='w3-hide-small' title='HTML Tutorial'>HTML</a><a href='/css/default.asp' class='w3-hide-small' title='CSS Tutorial'>CSS</a><a href='/js/default.asp' class='w3-hide-small' title='JavaScript Tutorial'>JAVASCRIPT</a><a href='/sql/default.asp' class='w3-hide-small' title='SQL Tutorial'>SQL</a><a href='/php/default.asp' class='w3-hide-small' title='PHP Tutorial'>PHP</a><a href='/bootstrap/default.asp' class='w3-hide-small' title='Bootstrap Tutorial'>BOOTSTRAP</a><a href='/jquery/default.asp' class='w3-hide-small' title='jQuery Tutorial'>JQUERY</a><a href='/angular/default.asp' class='w3-hide-small' title='Angular Tutorial'>ANGULAR</a><a href='/xml/default.asp' class='w3-hide-small' title='XML Tutorial'>XML</a></div> <div style='float:right;width:110px;overflow:hidden;height:44px;'> <a href='javascript:void(0);' class='topnav-icons fa fa-search w3-right' onclick='w3_open_nav("search")' title='Search W3Schools'></a> <a href='javascript:void(0);' class='topnav-icons fa fa-globe w3-right' onclick='openGoogleTranslate();w3_open_nav("translate")' title='Translate W3Schools'></a></div> <div class='w3-hide-small' style='float:right;width:30%;overflow:hidden;height:44px;'> <a id='topnavbtn_tutorials' href='javascript:void(0);' onclick='w3_open_nav("tutorials")' title='Tutorials'>TUTORIALS <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a id='topnavbtn_references' href='javascript:void(0);' onclick='w3_open_nav("references")' title='References'>REFERENCES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a id='topnavbtn_examples' href='javascript:void(0);' onclick='w3_open_nav("examples")' title='Examples'>EXAMPLES <i class='fa fa-caret-down'></i><i class='fa fa-caret-up' style='display:none'></i></a><a href='/forum/default.asp'>FORUM</a></div></div> <div id='nav_tutorials' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_references' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_examples' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_translate' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div> <div id='nav_search' class='w3-dropnav w3-light-grey w3-card-2 w3-center'></div></div> <div class='w3-row w3-light-grey' id='belowtopnav'> <div class='w3-col w3-slim' id='leftmenu'> <div id='leftmenuinner'> <div class='w3-light-grey' id='leftmenuinnerinner'> how to delete this element : <a href='/default.asp' class='topnav-icons fa fa-home w3-left' title='Home'></a> var b = document.getElementsByTagName('a')[2] ; and we know that it is the child of <body> so I did like this : var b = document.getElementsByTagName('a')[2] ; document.body.parentElement.removeChild( but I got an error : However if we look in html script above we will notice that body node exists so why it says node not found ? and how to correct again the error
  10. Look Justsomeguy I am an idiot . The whole time the word interface was explained here in simple words http://www.w3schools.com/js/js_htmldom_methods.asp But because I did not open my eyes and give some efforts to read . I did not notice it Now I would like to know what is a node . So , first , I tried to reread all the pages I already read so that I did not miss the definition of the word node in w3schools tutorial but I could not find the definition as I did with the word interface . However I found this interesting tree : So I think that each element is a node of the tree . title is a node , href is a node and body is a node... . Right ? or wrong ? In the same time , head element is a child of the parent html element and body element is the child of the parent html element . Title element is the child of head element which is its parent . and html element is the grandfather of the title element Right or wrong ?
  11. ok now coming to document.removeChild(element) I did like this : var b = document.getElementsByTagName('a')[7]; document.removeChild( but there was an error saying what is the meaning of the error ? and how to correct it ?
  12. So an interface is the methods and properties of an object ??
  13. Thank you for the link . The blueprint of an object or the object interface is nothing more than its methods and properties . Right ? or wrong ?
  14. To understand better I will write that in java script a variable is an object . So var name = "john"; is an object with value john . Could you please give me the blueprint of the variable name ?
  15. Literary , I know what a blueprint means but programmatically not . For example this is an object : <div id="headerSubnav"> what is its blueprint ? please write me its blueprint so that I know how does the blueprint of the object <div id="headerSubnav"> look like