
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10483 Articles for Web Development

661 Views
To debug JavaScript on the iPad, you need to open the Safari browser.Now enable Web Inspector in iOS. In the Settings app, select Safari. Tap the Advanced option and start Web Inspector −Now select Web Inspector −Use a USB cable to connect the iPad to Mac. Safari opens and your iPad now visible in the DEVELOP Menu. After selecting, start debugging JavaScript.

482 Views
To debug CSS/JavaSript hover issues, you need to follow the below-given steps, Press F12 to open Inspect Element, in Firefox. In the DOM view right-click the element, and Select :hover, :active or :focus at the bottom of the context menuThe following screenshot shows how to debug hover issues −

637 Views
To debug obfuscated JavaScript code, you need to use a JavaScript formatter or beautifier. Go to the following link to beautify JavaScript, In the left section, add your obfuscated JavaScript code and click Beautify as shown below, On clicking, you can see Beautified JavaScript code in the right section.

3K+ Views
To debug JavaScript in Visual Studio, follow the below-given steps −Open Visual StudioSelect your project to be debugged in Solution Explorer.Right Click and select Browse With, and set a default browser.Now, go to START and type Internet Options.Above, uncheck both the options for Disable script debugging.Click Apply, and then Ok.Now set breakpoints in your JS file.After that press the debug button in Visual Studio.

4K+ Views
To force Google Chrome’s script debugger to reload JavaScript, follow the below steps −Open Dev ToolsClick on the Sources tabFind your script / image / fileCheck the right panel to see if your file is up to dateIf the file is not up to date, then −Right-click the resource in the left panel and choose 'Open Link in New Tab'Force a reload of the resource with CTRL+F5

65K+ Views
We use the onclick event attribute property of the HTML button to call a JavaScript function. The JavaScript code provided in the onclick attribute executes when the button is clicked. There are various attributes provided with the button tag in HTML that allows us to customize the button’s functionality and also let us decide how and what the button triggers. Approach 1: Using the onclick event in JavaScript The onclick event of the button element expects JavaScript code that is triggered when the button is clicked upon. So we put the function that needs to be called in the onclick ... Read More

299 Views
Comments are used to explain the code flow and want to prevent the code from executing. In JavaScript, there are two types of comments. One is single-line comments, used to comment on the single-line code to prevent the code from executing or to explain the code. Another one is multi-line comments, used to comment on blocks of code to prevent the code from the execution or to explain code that is added in or code. By adding comments, we will give clarity to other developers also why code is added and what that particular code will do. Commented code will ... Read More

314 Views
To check if a JavaScript function is defined or not, checks it with “undefined”.ExampleYou can try to run the following example to check for a function is defined or not in JavaScript − function display() { alert("Demo Text!"); } if ( typeof(display) === 'undefined') { document.write('undefined'); } else { document.write("Function is defined"); }

253 Views
To include optional function parameters in JavaScript, you can try the following,function myFunc(a, b = 0) { // function body }ExampleYou can try to run the following code to learn how to include optional function parameters − // default is set to 1 function inc(val1, inc = 1) { return val1 + inc; } document.write(inc(10,10)); document.write(""); document.write(inc(10));

7K+ Views
We can create many JavaScript variables in a single statement using the var, let, and const keywords that are used for declaring variables in JavaScript. Instead of declaring every variable individually, we can chain many variables together with commas (, ) in a single statement. Since JavaScript is a loosely typed language, variables of many data types can be declared in the same sentence as well. Syntax var variable1 = value1, variable2 = value2, variable3 = value3; Here, var is the keyword used for declaring the variables viz: variable1, variable2, variable3 and assigning them the respective values. Example 1 ... Read More