<?xml version="1.0"?>

<rss version="2.0">


<channel>
<title>Home - All Categories - JavaScript  </title>
<link>https://www.navel.ir/category/javascript/</link>
<description>This RSS Feed contains Articles of Category in the knowledge base. You can click on the title to view its content. Powered by PHPKB Knowledge Base Software (http://www.knowledgebase-script.com)</description>
<item>
										<guid>https://www.navel.ir/article/how-to-change-the-text-direction-of-an-element-31.html</guid>
										<title>How to change the text direction of an element?</title>
										<link>https://www.navel.ir/article/how-to-change-the-text-direction-of-an-element-31.html</link>
										<description><![CDATA[$(&#039;input&#039;).keyup(function(){     $this = $(this);     if($this.val().length == 1)     {         var x =  new RegExp("[&#92;x00-&#92;x80]+"); // is ascii          //alert(x.test($this.val()));          var isAscii = x.test($this.val());     ...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/how-to-hide-image-broken-icon-using-only-css-html-40.html</guid>
										<title>How to hide image broken Icon using only CSS/HTML?</title>
										<link>https://www.navel.ir/article/how-to-hide-image-broken-icon-using-only-css-html-40.html</link>
										<description><![CDATA[&lt;img src="Error.src" onerror="this.style.display=&#039;none&#039;"/&gt;or &lt;img src="Error.src" onerror="this.src=&#039;fallback-img.jpg&#039;"/&gt;  &nbsp; document.addEventListener("DOMContentLoaded", function(event) {    document...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/hidden-image-after-redirect-by-check-filename-44.html</guid>
										<title>Hidden image after redirect by check filename</title>
										<link>https://www.navel.ir/article/hidden-image-after-redirect-by-check-filename-44.html</link>
										<description><![CDATA[$("img.class").load(function() { var noImage = this.src; var xhr; var _orgAjax = jQuery.ajaxSettings.xhr; jQuery.ajaxSettings.xhr = function () { xhr = _orgAjax(); return xhr; }; $.ajax({ type: "GET", url: noImage, success: function(data) { console...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/get-the-current-domain-name-with-javascript-not-the-path-etc-45.html</guid>
										<title>Get The Current Domain Name With Javascript (Not the path, etc.)</title>
										<link>https://www.navel.ir/article/get-the-current-domain-name-with-javascript-not-the-path-etc-45.html</link>
										<description><![CDATA[  &nbsp;     If you wish a full domain origin, you can use this: document.location.origin  And if you wish to get only the domain, use can you just this: document.location.hostname  But you have other options, take a look at the properties in:...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/check-image-width-and-height-before-upload-with-javascript-29.html</guid>
										<title>Check image width and height before upload with Javascript</title>
										<link>https://www.navel.ir/article/check-image-width-and-height-before-upload-with-javascript-29.html</link>
										<description><![CDATA[var _URL = window.URL || window.webkitURL;$("#file").change(function (e) { var file, img; if ((file = this.files[0])) { img = new Image(); var objectUrl = _URL.createObjectURL(file); img.onload = function () { alert(this.width + " " + this.height);...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/strip-html-tags-in-javascript-47.html</guid>
										<title>Strip HTML Tags in JavaScript</title>
										<link>https://www.navel.ir/article/strip-html-tags-in-javascript-47.html</link>
										<description><![CDATA[const originalString = `   &lt;div&gt;     &lt;p&gt;Hey that&#039;s &lt;span&gt;somthing&lt;/span&gt;&lt;/p&gt;   &lt;/div&gt; `;  const strippedString = originalString.replace(/(&lt;([^&gt;]+)&gt;)/gi, "");  console.log(strippedString);Reference...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/regex-in-javascript-to-remove-links-46.html</guid>
										<title>Regex in Javascript to remove links</title>
										<link>https://www.navel.ir/article/regex-in-javascript-to-remove-links-46.html</link>
										<description><![CDATA[mystr = "check this out &lt;a href=&#039;http://www.google.com&#039;&gt;Click me&lt;/a&gt;. cool, huh?"; alert(mystr.replace(/&lt;a&#92;b[^&gt;]*&gt;(.*?)&lt;&#92;/a&gt;/i,""));Reference:https://stackoverflow.com/questions/960156/regex-in-javascript...]]></description>

									</item>
<item>
										<guid>https://www.navel.ir/article/xmlhttprequestresponseurl-43.html</guid>
										<title>XMLHttpRequest.responseURL</title>
										<link>https://www.navel.ir/article/xmlhttprequestresponseurl-43.html</link>
										<description><![CDATA[Example var xhr = new XMLHttpRequest(); xhr.open(&#039;GET&#039;, &#039;http://example.com/test&#039;, true); xhr.onload = function () {   console.log(xhr.responseURL); // http://example.com/test }; xhr.send(null);Reference:https://developer.mozilla...]]></description>

									</item>

</channel>

</rss>