Found 9054 Articles for Front End Technology

What does a JavaScript plugin consist of?

Shubham Vora
Updated on 31-Oct-2022 11:24:48

2K+ Views

In this tutorial, we will discuss plugins in JavaScript. So what is a plugin? A plugin is a JavaScript code written in a file. This file supplies various methods that we can use for various purposes. A plugin has an entry in the array. An entry has following properties − name − The name is the plugin name. filename − filename is the executable file loaded to install the plugin with the extension. description − description is the developer's(manufacturer's) description of the plugin. mimeTypes − mimeTypes is an array with one entry for each MIME type that the plugin ... Read More

How to list down all the plug-in installed in your browser?

Nitya Raut
Updated on 23-Jun-2020 06:55:20

721 Views

To list down all the plug-on installed in the web browser, use the JavaScript navigator object. The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each plug-in installed on the browser.ExampleYou can try to run the following code to list down all the plug-in installed in your browser −           List of Plug-Ins                                       Plug-in Name             Filename             Description                                 for (i = 0;  i < navigator.plugins.length;  i++)             {                document.write("");                document.write(navigator.plugins[i].name);                                document.write("");                document.write(navigator.plugins[i].filename);                                document.write("");                document.write(navigator.plugins[i].description);                document.write("");             }                    

How to differentiate between Manual and Automated Animation in JavaScript?

Shubham Vora
Updated on 26-Oct-2022 07:38:22

301 Views

Generally, animation in JavaScript is done to get different effects and make the object move around the page. You can move and animate any type of HTML element using manual or automated animations in JavaScript. In this tutorial, we will learn how to differentiate between manual and automated animation in JavaScript. Manual Animation Before explaining the difference between the two common types of animation used in JavaScript, we must learn the process of animating objects manually. Under Manual Animation, the animation process is not automated. The following is the implementation of a simple animation using DOM object properties and ... Read More

What is the role of clearTimeout() function in JavaScript?

Srinivas Gorla
Updated on 23-Jun-2020 06:55:51

187 Views

If you have set a time using setTimeout() function, then you can clear it using the JavaScript clearTimeout() function.ExampleYou can try to run the following code learn how to implement clearTimeout() function in JavaScript −           JavaScript Animation                                                        Click the buttons below to handle animation                              

What are different Navigator methods available?

Jennifer Nicholas
Updated on 23-Jun-2020 06:56:24

131 Views

You can use several Navigator related properties in your web page. The following are the properties −Sr.NoProperties & Description1javaEnabled()This method determines if JavaScript is enabled in the client. If JavaScript is enabled, this method returns true; otherwise, it returns false.2plugings.refreshThis method makes newly installed plug-ins available and populates the plugins array with all new plug-in names. Netscape only.3preference(name, value)This method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value. Netscape only.4taintEnabled()This method returns true if data tainting ... Read More

When to use anonymous JavaScript functions?

Vrundesha Joshi
Updated on 23-Jun-2020 06:58:06

181 Views

The code while using anonymous functions is more readable when handlers are to be defined inside the calling code. Anonymous functions are declared inline. Normally, inline functions are better since they can access variables in the parent scopes.It allows for creating a function without any names identifier. It can be used as an argument to other functions. You can call them using a variable name.This is how JavaScript anonymous functions can be used −var func = function() {    alert(‘This is anonymous'); } func();Here’s an example −//anonymous function var a = function() {    return 5; }

How to Debug JavaScript on iPad?

Abhinanda Shri
Updated on 23-Jun-2020 06:57:14

393 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.

How to debug CSS/JavaScript hover issues?

Rishi Rathor
Updated on 23-Jun-2020 06:59:35

236 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 −

How to debug obfuscated JavaScript?

Ankitha Reddy
Updated on 30-Jul-2019 22:30:21

458 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.

How to debug JavaScript in Visual Studio?

Nancy Den
Updated on 23-Jun-2020 06:47:21

2K+ 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.

Advertisements