Javascript – Page 10 – POFTUT

Javascript Syntax and Basics

In this post we will start writing simple Javascript codes and run them on the browser. We will also look comments. Two Lines Of Code Our code is below. It is now two line and becoming more complex but not too much for our target. console.log(“Hello Poftut”); console.log(“By Poftut”); Here is two JavaScript line ended … Read more

How To Setup Javascript Development Environment with Firefox?

Working environment is important while programming. We can use IDE’s like Eclipse, Visual Studio etc. or simple notepad or Browsers integrated text editors. Scratchpad In this tutorial we will use Firefox Scratchpad for simplicity. Scratchpad can be accessed from Menu->Developer->Scratchpad As we see Scratchpad provides saving code, running code, inspecting code and debug. For the … Read more

Introduction to Javascript Programming Language

Javascript is scripting language very popular among developers. Javascript is the programming language of the web. In the recents years Javascript popularity is higher than before because it gained a lot of features with new browsers technologies. There browsers, mobile devices, desktop, game consoles use Javascript. History Javascript initially designed to interact with Html code … Read more

How To Redirect Web Pages To Another Page with PHP or Javascript?

PHP is a popular programming or scripting language used to develop web pages. One of the problems developers face is using PHP to redirect the user browser to the new page. for example, we have an old URL but we want to make the transition to the new URL we can achieve this simply by … Read more

Html Text Input Allow Only Numeric Input

Applications expecting numeric values for the input is generally a pain for developers. Because we have to check given values whether they are number or alphabet. We have some text input element for html. We want to get the number of the person. How can we achieve that easily? Pure JavaScript By using JavaScript events … Read more

Hiding Scroll Bar for Internet Explorer, Chrome, Firefox

Here is the situation we want to hide scroll bar. We have huge content. But we want to still scroll. We can accomplish this with different tactics. By using Css We can use Css techniques in order to hide and do not show the scrollbar in a browser. This is supported by all major browsers like … Read more

How To Get Query String From Url With Javascript?

Query string is part of URL. After question mark query string begins with simple key-value pairs. Popular JavaScript frameworks provide libraries to get query string with JavaScript. But how can we get it with pure JavaScript without using any JavaScript framework? getParameterByName() Function First we create a function to to get, parse the URL and … Read more

C# Programming Language Null Reference Exception and Solution

Null Reference Exception is one of the most occurring exception. Object oriented languages generally creates new object for the variables. But if it is not created and not set by the developer trying to access an variable object will cause Null Reference Exception. In this examples we will use Csharp programming language for Null Reference Exception. … Read more

JavaScript “Uncaught TypeError: Cannot set property ‘…’ of null ” Error Solutions

While writing JavaScript beginners get a lot of Uncaught TypeError: Cannot set property ‘…’ of null error message so what is the problem with the code? Define Object During JavaScript Initialization Here is number one reason the object you try to access is not defined. It may define later. It is not a joke because if … Read more