{"id":70149,"date":"2021-08-27T04:10:09","date_gmt":"2021-08-27T08:10:09","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/javascript-miscellaneous-topics-13\/"},"modified":"2021-08-27T04:10:09","modified_gmt":"2021-08-27T08:10:09","slug":"javascript-miscellaneous-topics-13","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=70149","title":{"rendered":"JavaScript Miscellaneous Topics #13"},"content":{"rendered":"<p>JavaScript Miscellaneous Topics. Please check below.  <\/p>\n<ul>\n<li> Detect browser name and version:\n<pre style='font-size:12px;padding:10px'>                var browser=navigator.appName;                var b_version=navigator.appVersion;           <\/pre>\n<\/li>\n<li> Other browser related: navigator.appCodeName, navigator.platform,   navigator.platform , navigator.cookieEnabled , navigator.userAgent, navigator.appMinorVersion,  navigator.cpuClass, navigator.onLine, navigator.browserLanguage, navigator.systemLanguage, navigator.userLanguage  <\/li>\n<li> It&#8217;s a good idea to use escape function for setting cookie values (if more than one word). Also, use unescape function on the value when you want to use the value (situation dependent)  <\/li>\n<li> Animating a button: Place a button, onmouseover event replace the button image with a highlighted button image, on mouse out event &#8211; go back to the original button image\n<pre style='font-size:12px;padding:10px'><a href=\"http:\/\/www.justetc.net\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"hello\" src=\"b_pink.gif\" id=\"b1\" width=\"26\" height=\"26\" \/><\/a><br \/>Place the following code under script tag\/in a javascript filefunction mouseOver(){   document.getElementById(\"b1\").src =\"b_blue.gif\";}function mouseOut(){   document.getElementById(\"b1\").src =\"b_pink.gif\";}<\/pre>\n<\/li>\n<li> Example: Using Map, Area, and MouseOver Event\n<pre style='font-size:12px;padding:10px'><map name=\"planetmap\"><area shape=\"rect\" target=\"_blank\" alt=\"target\" \/><\/map><\/pre>\n<\/li>\n<li> Display an alert box after 5 seconds: var t=setTimeout(&#8220;alert(&#8216;Time is over!&#8217;)&#8221;,5000);<\/li>\n<li> Change document content after different time intervales\n<pre style='font-size:12px;padding:10px'>var t1=setTimeout(\"document.getElementById('id1').value='2 seconds!'\",2000);var t2=setTimeout(\"document.getElementById('id1').value='4 seconds!'\",4000);var t3=setTimeout(\"document.getElementById('id1').value='6 seconds!'\",6000);<\/pre>\n<\/li>\n<li> Reset time out: t=setTimeout(&#8220;alert(&#8216;Time is over!&#8217;)&#8221;,5000); clearTimeout(t);<\/li>\n<li> Javascript Objects:\n<pre style='font-size:12px;padding:10px'>Direct Instance: pObj=new Object();pObj.firstname=\"John\";pObj.lastname=\"Doe\";pObj.age=50;pObj.eyecolor=\"blue\";document.write(pObj.firstname + \" is \" + pObj.age + \" years <\/pre>\n<\/li>\n<li> Object template\n<pre style='font-size:12px;padding:10px'>function car(brand,make,model){this.brand=brand;this.make=make;this.model=model;}var myCar=new car(\"Honda\",\"2009\",\"Accord\");document.write(myCar.brand +  myCar.make + myCar.model );<\/pre>\n<\/li>\n<li> JavaScript Error Handling: Try\/Catch:\n<pre style='font-size:12px;padding:10px'>try{}catch(err){}<\/pre>\n<\/li>\n<li> JavaScript OnError Event: You can define a function in JavaScript code that will be always called if any javascript error.\n<pre style='font-size:12px;padding:10px'>Under script tag\/javascript file_onerror=handleErr;var alertTxt = \"\" function handleErr(msg, url, l){   alertTxt = \"Error Information:.nn\";   alertTxt += msg + \"n\";   alertTxt += url + \"n\";   alertTxt += l + \"nn\";   alertTxt += \"Click OK to continue.nn\";   alert(alertTxt);   return true;}<\/pre>\n<\/li>\n<li> Javascript Advanced For loop:\n<pre style='font-size:12px;padding:10px'>var x;var myFriends= new Array();myFriends[0] = \"Shafiq\";myFriends[1] = \"Rafiq\";myFriends[2] = \"Abba\";myFriends[3] = \"Amma\";for (x in myFriends){   document.write(myFriends[x] + \"<br \/>\");}<\/pre>\n<\/li>\n<li> JavaScript Alert Box:alert(&#8220;Alert box with new line&#8221; + &#8216;n&#8217; + &#8220;in a new line!&#8221;);<\/li>\n<li> JavaScript Confirm Box:var con = confirm(&#8220;Press a button&#8221;);<\/li>\n<li> JavaScript Prompt Box: Take Input from User:var name=prompt(&#8220;Please enter your name&#8221;,&#8221;Harry Potter&#8221;);<\/li>\n<li> JavaScript Random Number: var rNumber = Math.random();<\/li>\n<li> JavaScript Switch Statement:\n<pre style='font-size:12px;padding:10px'>var d = new Date();theDay=d.getDay();switch (theDay){case 5:  document.write(\"<b>Friday<\/b>\");  break;case 6:  document.write(\"<b>Saturday<\/b>\");  break;case 0:  document.write(\"<b>Sunday<\/b>\");  break;}<\/pre>\n<\/li>\n<li> JavaScript Objects:Window, Navigator, Screen, History, Location<\/li>\n<li> JavaScript Date Object : var myDate=new Date()<\/li>\n<li> Some date object methods: <br \/>Date(): Returns today&#8217;s date and time <br \/>getDate(): Returns the day of the month from a Date object (from 1-31) <br \/>getDay(): Returns the day of the week from a Date object (from 0-6)<br \/>getFullYear(): Returns the year, as a four-digit number, from a Date object <br \/>getHours(): Returns the hour of a Date object (from 0-23) <br \/>getMilliseconds(): Returns the milliseconds of a Date object (from 0-999) <br \/>getMinutes(): Returns the minutes of a Date object (from 0-59) <br \/>getMonth(): Returns the month from a Date object (from 0-11) <br \/>getSeconds(): Returns the seconds of a Date object (from 0-59) <br \/>getTime(): Returns the number of milliseconds since midnight Jan 1, 1970<\/li>\n<li> JavaScript Math Object Functions: You need to use the function as Math.max() format <br \/>abs(x) , acos(x) , asin(x) , atan(x) , atan2(y,x),  ceil(x),  cos(x),  exp(x) , floor(x),  log(x),  (base E) ,max(x,y) , min(x,y),  pow(x,y) , random() ,  round(x),  sin(x) , sqrt(x) , tan(x) , toSource(),  valueOf() <\/li>\n<li> JavaScript Regular Expression Example:\n<pre style='font-size:12px;padding:10px'>   var pattern = new RegExp(\"e\",\"g\");   do   {     result=pattern .exec(\"This is the line where the regular expression will be searched on\");     document.write(result);   }   while (result!=null) <\/pre>\n<\/li>\n<li> JavaScript Global Objects:    * Array,    * Boolean,    * Date,    * Error,    * EvalError,    * Function,    * Math,    * Number,    * Object,    * RangeError,    * ReferenceError,    * RegExp,    * String,    * SyntaxError,    * TypeError,    * URIError<\/li>\n<li> JavaScript Global Functions:# decodeURI,# decodeURIComponent,# encodeURI,# encodeURIComponent,# eval,# isFinite,# isNaN,# parseFloat,# parseInt<\/li>\n<li> Javascript Statements:# block,# break,# const,# continue,# do&#8230;while,# export,# for,# for&#8230;in,# for each&#8230;in,# function,# if&#8230;else,# import,# label,# let,# return,# switch,# throw,# try&#8230;catch,# var,# while,# with<\/li>\n<li> JavaScript Reference from Sun (version 1.3 recent JS version is 1.8, I guess): http:\/\/docs.sun.com\/source\/816-6408-10\/<\/li>\n<li>  JavaScript Events :onAbort,    onActivate,     onAfterPrint,   onAfterUpdate,  onBeforeActivate,   onBeforeCopy, onBeforeCut,  onBeforeDeactivate,     onBeforeEditFocus,  onBeforePaste,  onBeforePrint,  onBeforeUnload, onBeforeUpdate,     onBlur,     onBounce,   onCellChange,   onChange,   onClick, onContextMenu,     onControlSelect,    onCopy,     onCut,  onDataAvailable( 3 )    onDatasetChange, onDatasetComplete,     onDblClick,     onDeactivate,   onDrag,     onDragEnd,  onDragEnter, onDragLeave,   onDragOver,     onDragStart,    onDrop,     onError,    onErrorUpdate, onFilterChange,  onFinish,   onFocus,    onFocusIn,  onFocusOut,     onHelp, onKeyDown,  onKeyPress,     onKeyUp,    onLayoutComplete,   onLoad,     onLoseCapture, onMouseDown,     onMouseEnter,   onMouseLeave,   onMouseMove,    onMouseOut,     onMouseOver, onMouseUp,     onMouseWheel,   onMove,     onMoveEnd,  onMoveStart,    onPaste, onPropertyChange,  onReadyStateChange,     onReset,    onResize,   onResizeEnd,    onResizeStart, onRowEnter,  onRowExit,  onRowsDelete,   onRowsInserted,     onScroll,   onSelect, onSelectionChange,    onSelectStart,  onStart,    onSubmit,   onTimeError,    onUnload, <\/li>\n<li> JavaScript Methods:abs, acos,   add namespaces, add,    addBehavior,    AddChannel,AddDesktopComponent, addElement, AddFavorite,    addImport,  addPageRule( 2 )    addReadRequest,addRule, alert,  anchor, appendChild,    appendData, applyElement,asin,  assign, atan,   atan2,  attachEvent,    AutoCompleteSaveForm,AutoScan,  back,   big,    blink,  blur,   bold,ceil,  charAt, charCodeAt, ChooseColorDlg, clear,  clearAttributes,clearData,  clearInterval,  clearRequest,   clearTimeout,   click,  cloneNode,close,    collapse,   compareEndPoints,   componentFromPoint( 4 )     concat 1,   concat 2,confirm,   contains,   cos,    createAttribute,    createCaption,  createComment,createControlRange,   createDocumentFragment, createElement,  createEventObject,  createPopup,    createRange,createStyleSheet,   createTextNode, createTextRange,    createTFoot,    createTHead,    deleteCaption,deleteCell,   deleteData, deleteRow,  deleteTFoot,    deleteTHead,    detachEvent,doImport,   doReadRequest,  doScroll,   dragDrop,   duplicate,  elementFromPoint,empty, escape( 2 )     eval( 2 )   execCommand,    execScript, exp,findText,   fireEvent,  firstPage,  floor,  focus,  fontColor,fontSize, forward,    fromCharCode,   getAdjacentText,    getAttribute,   getAttributeNode,getBookmark,   getCharset, getClientRects, getData,    getDay, getElementById,getElementsByName,   getElementsByTagName,   getExpression,  getFullYear,    getMilliseconds,    getMonth,getNamedItem,  getSeconds, getTime,    getTimezoneOffset,  getUTCDate, getUTCDay,getUTCHours,  getUTCMilliseconds, getUTCMinutes,  getUTCMonth,    getUTCSeconds,  getYear,hasChildNodes,  hasFocus,   hasOwnProperty, hide,   ImportExportFavorites,  indexOf,inRange,    insertAdjacentElement,  insertAdjacentText, insertBefore,   insertCell, insertData,insertRow,   isEqual,    isNaN( 2 )  isPrototypeOf,  IsSubscribed,   italics,item,   javaEnabled,    join,   lastIndexOf,    lastPage,   link,localeCompare, log,    match,  max,    mergeAttributes,    min,move,   moveBy, moveEnd,    moveRow,    moveStart,  moveTo,moveToBookmark,  moveToElementText,  moveToPoint,    namedItem,  namedRecordset, navigate,NavigateAndFind,   nextPage,   normalize,  open,   parentElement,  parse,parseFloat( 2 )   parseInt( 2 )   pasteHTML,  pop,    pow,    previousPage,print, prompt, queryCommandEnabled,    queryCommandIndeterm,   queryCommandState,  queryCommandValue,recalc,   refresh plugin, releaseCapture, remove, removeAttribute,    removeAttributeNode,removeBehavior, removeChild,    removeExpression,   removeNode, removeRule, replace location,replace String,    replaceChild,   replaceData,    replaceNode,    reset,  resizeBy,reverse,   round,  scroll, scrollBy,   scrollIntoView, scrollTo,select form control,   select, setActive,  setAttributeNode,   setCapture, setDate,setExpression,  setFullYear,    setHours,   setMilliseconds,    setMinutes, setMonth,setSeconds,    setTime,    setTimeout, setUTCDate, setUTCFullYear, setUTCHours,setUTCMilliseconds, setUTCMinutes,  setUTCMonth,    setUTCSeconds,  setYear,    shift,show, ShowBrowserUI,  showHelp,   showModalDialog,    showModelessDialog, sin,slice,  small,  sort,   splice, split,  splitText,sqrt, start,  stop,   strike, sub,    submit,substr,  substring,  substringData,  sup,    swapNode,   tags,taintEnabled,  tan,    toExponential,  toFixed,    toGMTString,    toLocaleLowerCase,toLocaleString,   toLocaleUpperCase,  toLowerCase,    toPrecision,    toSource,   toString,toUpperCase,   toUTCString,    unescape( 2 )   unshift,    urns,   UTC,valueOf,    write,  writeln<\/li>\n<li>  <\/li>\n<\/ul>\n<p>From: http:\/\/sitestree.com\/?p=5209<br \/> Categories:13<br \/>Tags:<br \/> Post Data:2011-05-25 12:23:37<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript Miscellaneous Topics. Please check below. Detect browser name and version: var browser=navigator.appName; var b_version=navigator.appVersion; Other browser related: navigator.appCodeName, navigator.platform, navigator.platform , navigator.cookieEnabled , navigator.userAgent, navigator.appMinorVersion, navigator.cpuClass, navigator.onLine, navigator.browserLanguage, navigator.systemLanguage, navigator.userLanguage It&#8217;s a good idea to use escape function for setting cookie values (if more than one word). Also, use unescape function on the value &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=70149\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-70149","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6797,"url":"http:\/\/bangla.sitestree.com\/?p=6797","url_meta":{"origin":70149,"position":0},"title":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 \u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f (HTML Scripts)","author":"Author-Check- Article-or-Video","date":"April 6, 2015","format":false,"excerpt":"\u09a8\u09be\u09ae-\u09b6\u09b0\u09bf\u09ab\u09c1\u09b2 \u0987\u09b8\u09b2\u09be\u09ae Job category-Php Coder \u00a0 Javascript \u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 \u09aa\u09c7\u099c \u0995\u09c7 \u0985\u09a8\u09c7\u0995 \u0997\u09a4\u09bf\u09b6\u09c0\u09b2 \u098f\u09ac\u0982 \u0987\u09a8\u09cd\u099f\u09be\u09b0\u200c\u09cd\u09af\u09be\u0995\u09cd\u099f\u09bf\u09ad \u0995\u09b0\u09c7 \u09a4\u09c1\u09b2\u09c7\u0964 \u00a0 \u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 <script> \u099f\u09cd\u09af\u09be\u0997 \u099c\u09be\u09ad\u09be\u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f \u098f\u09b0 \u09ae\u09a4\u09cb \u0995\u09cd\u09b2\u09be\u09af\u09bc\u09c7\u09a8\u09cd\u099f \u09b8\u09be\u0987\u09a1 \u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f \u0995\u09c7 \u09b8\u0999\u09cd\u0997\u09be\u09df\u09bf\u09a4 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af <script> \u099f\u09cd\u09af\u09be\u0997 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964 <script> \u098f\u09b0 \u0989\u09aa\u09be\u09a6\u09be\u09a8 (\u098f\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f) \u09b9\u09bf\u09b8\u09c7\u09ac\u09c7 \u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f\u09bf\u0982 \u09b8\u09cd\u099f\u09c7\u099f\u09ae\u09c7\u09a8\u09cd\u099f \u09ac\u09be \u09ac\u09be\u09b9\u09bf\u09b0\u09c7\u09b0 \u098f\u0995\u099f\u09bf \u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f \u09ab\u09be\u0987\u09b2\u0995\u09c7 src \u098f\u099f\u09cd\u09b0\u09bf\u09ac\u0989\u099f \u09a6\u09cd\u09ac\u09be\u09b0\u09be\u2026","rel":"","context":"In &quot;\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML&quot;","block_context":{"text":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML","link":"http:\/\/bangla.sitestree.com\/?cat=494"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.w3schools.com\/html\/pic_bulboff.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":10548,"url":"http:\/\/bangla.sitestree.com\/?p=10548","url_meta":{"origin":70149,"position":1},"title":"Javascript : Miscellaneous Code","author":"","date":"August 29, 2015","format":false,"excerpt":"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 var browser=navigator.appName; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 var b_version=navigator.appVersion; <a href=\"http:\/\/www.justetc.net\" target=\"_blank\"> <img border=\"0\" alt=\"hello\" src=\"b_pink.gif\" id=\"b1\" width=\"26\" height=\"26\" onmouseover=\"mouseOver()\" onmouseout=\"mouseOut()\" \/> Place the following code under script tag\/in a javascript file function mouseOver() { \u00a0\u00a0 document.getElementById(\"b1\").src =\"b_blue.gif\"; } function mouseOut() { \u00a0\u00a0 document.getElementById(\"b1\").src =\"b_pink.gif\"; } <map name=\"planetmap\"> <area shape =\"rect\" coords =\"0,0,82,126\"\u2026","rel":"","context":"In &quot;Ajax&quot;","block_context":{"text":"Ajax","link":"http:\/\/bangla.sitestree.com\/?cat=1418"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27156,"url":"http:\/\/bangla.sitestree.com\/?p=27156","url_meta":{"origin":70149,"position":2},"title":"Javascript : Miscellaneous Code #Programming Code Examples #Java\/J2EE\/J2ME #Ajax","author":"Author-Check- Article-or-Video","date":"May 12, 2021","format":false,"excerpt":"var browser=navigator.appName; var b_version=navigator.appVersion; <a href=\"http:\/\/www.justetc.net\" target=\"_blank\"> <img border=\"0\" alt=\"hello\" src=\"b_pink.gif\" id=\"b1\" width=\"26\" height=\"26\" onmouseover=\"mouseOver()\" onmouseout=\"mouseOut()\" \/> Place the following code under script tag\/in a javascript file function mouseOver() { document.getElementById(\"b1\").src =\"b_blue.gif\"; } function mouseOut() { document.getElementById(\"b1\").src =\"b_pink.gif\"; } <map name=\"planetmap\"> <area shape =\"rect\" coords =\"0,0,82,126\" onMouseOver=\"writeText('You are over the\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26497,"url":"http:\/\/bangla.sitestree.com\/?p=26497","url_meta":{"origin":70149,"position":3},"title":"Javascript : Miscellaneous Code #Programming Code Examples #Javascript #JavaScript","author":"Author-Check- Article-or-Video","date":"April 26, 2021","format":false,"excerpt":"var browser=navigator.appName; var b_version=navigator.appVersion; Note: Brought from our old site: http:\/\/www.salearningschool.com\/example_codes\/ on Jan 2nd, 2017 From: http:\/\/sitestree.com\/?p=10180 Categories:Programming Code Examples, Javascript, JavaScriptTags:JavascriptJavaScript Post Data:2017-01-02 16:04:23 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65784,"url":"http:\/\/bangla.sitestree.com\/?p=65784","url_meta":{"origin":70149,"position":4},"title":"Some JavaScript stuff that you need to know #JavaScript","author":"Author-Check- Article-or-Video","date":"July 14, 2021","format":false,"excerpt":"What you really need to learn in Javascript? 1. Where you can place JavaScript codes? Anywhere in the web-pages, ideally in the header section, or in an external file. If you keep javascript codes in an external file, the codes will be re-usable from different web-pages 2. Some basic programming:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70121,"url":"http:\/\/bangla.sitestree.com\/?p=70121","url_meta":{"origin":70149,"position":5},"title":"What you really need to learn in Javascript? #13","author":"Author-Check- Article-or-Video","date":"August 26, 2021","format":false,"excerpt":"What you really need to learn in Javascript? 1. Where you can place JavaScript codes? Anywhere in the web-pages, ideally in the header section, or in an external file. If you keep javascript codes in an external file, the codes will be re-usable from different web-pages2. Some basic programming: document.write('Hello\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/70149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70149"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/70149\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}