Bluetooth communication networks are prone to signal interferences in environments where other wireless networks coexist. The problem is aggravated when they use the same frequency bands. Bluetooth technology and IEEE 802.11 networks, like Wireless LANs (WLANs) and WiFi, operate in the same unlicensed 2.4 GHz ISM (Industrial, Scientific, and Medical) radio band. In order to reduce the impact of these interferences, Adaptive Frequency Hopping (AFH) was introduced by Bluetooth Special Interest Group (SIG).In Adaptive Frequency Hopping, when a Bluetooth device is introduced in the network, it identifies the channels that are presently fixed for communication by WiFi or WLANs. It ... Read More
The ondragend event triggers when an element is dragged completely.ExampleYou can try to run the following code to learn how to implement ondragend event in JavaScript. .drag { float: left; width: 100px; height: 35px; border: 2px dashed #876587; margin: 15px; padding: 10px; } ... Read More
Use the ondrag event in JavaScript to drag an element. The ondrag event is triggered when an element is dragged.ExampleYou can try to run the following code to learn how to work with ondrag event in JavaScript. .drag { float: left; width: 100px; height: 35px; border: 2px dashed #876587; margin: 15px; padding: 10px; ... Read More
The onsearch event is useful for search i.e. a user press ENTER or “x” key in input element. The type for is search, since it is for users to search. The onsearch event isn’t supported in Internet Explorer, Firefox, and Opera.ExampleYou can try to run the following code to learn how to implement onsearch event in JavaScript. Write what you want to search below and press "ENTER". function searchFunc() { var a = document.getElementById("newInput"); document.write("Searched = " + a.value); }
The oninvalid event is triggered if the field value added in is invalid. Add a message if the user forgets to fill the form before submission.ExampleYou can try to run the following code to learn how to implement oninvalid event in JavaScript. function resetFunct() { alert("The form was reset"); } Enter Name: Enter birth month:
The onfocusin event triggers when an element is to lose focus. You can try to run the following code to learn how to implement onfocusout event in JavaScript.Example Write below: After losing focus, the background color of input check will change. function newFunc(x) { x.style.background = "blue"; }
The nodeValue property is used to get the node value. You need to specify the node.ExampleYou can try to run the following code to learn how to get nodeValue property.Live Demo Get the node value Demo Button Text var val = document.getElementsByTagName("BUTTON")[0]; var res = val.childNodes[0].nodeValue; document.write("Node Value: "+res);
The nodeName property in JavaScript is used to specify the name of a node.ExampleYou can try to run the following code to learn how to implement a nodeName property in JavaScript.Live Demo Tutorials Demo Content document.getElementById("id3").innerHTML = document.getElementById("id1").nodeName; document.getElementById("id4").innerHTML = document.getElementById("id2").nodeName;
The onfocus event is triggered when element gets focus. You can try to run the following code to learn how to implement onfocus event in JavaScript.Example Write below: function newFunc(x) { x.style.background = "blue"; }
The blur event triggers when object lose focus. You can try to run the following code to learn how to implement onblur event in JavaScript.Example Write below: function newFunc(a) { a.style.background = "green"; }
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP