JavaScript Clipboard Copy Event

Nitya Raut
Updated on 23-May-2020 09:12:11

150 Views

When a user copies the element’s content, then the oncopy event triggers.ExampleYou can try to run the following code to learn how to implement oncopy event in JavaScript.                          function copyFunction() {             document.write("Text copied!");          }          

Bluetooth Usage and Applications

Moumita
Updated on 22-May-2020 11:56:10

15K+ Views

Bluetooth is a network technology that connects mobile devices wirelessly over a short-range to form a personal area network (PAN). They use short-wavelength, ultra-high frequency (UHF) radio waves within the range 2.400 to 2.485 GHz, for wireless communications.Bluetooth UsageUsage of Bluetooth can be broadly categorized into three areas −Access Points for Data and Voice − Real-time voice and data transmissions are provided by Bluetooth by connecting portable and stationary network devices wirelessly.Cable replacement − Bluetooth replaces the need for a large number of wires and cables of wired networks. The connections can be made instantly and are retained even when ... Read More

Logical Link Control and Adaptation Protocol (L2CAP)

Moumita
Updated on 22-May-2020 11:53:03

7K+ Views

Logical Link Control and Adaptation Protocol (L2CAP) is a protocol used in the Bluetooth standard that provides adaption between higher layers and the baseband layer of the Bluetooth stack. It operates just above the host-controller interface (HCI) passing data frames from the higher layers to either HCI or Link Manager.The following diagram shows the position of L2CAP in Bluetooth protocol architecture −Functions of L2CAPAdaptation between higher-layer frames and lower layer frames of the Bluetooth protocol stack.Support for both connection-oriented as well as connectionless services.Supporting two links for the Baseband layer −Synchronous Connection-Oriented (SCO) links for real-time voice traffic using reserved ... Read More

The Bluetooth Radio Layer

Moumita
Updated on 22-May-2020 11:51:06

3K+ Views

The Bluetooth radio layer is the lowest layer of Bluetooth architecture that corresponds to the physical layer of the OSI model. It lays down the physical structure and specifications for the transmission of radio waves.The position of the radio layer depicted in the following diagram −Characteristic Features of Bluetooth Radio LayerThe Bluetooth radio layer lays down the requirements of the Bluetooth transceiver device that communicates using Bluetooth technology.It defines air interface, frequency bands, frequency hopping specifications, and modulation techniques.This layer is responsible for moving data bits from the master device to the slave device, and vice versa.It is a low-power ... Read More

Adaptive Frequency Hopping

Moumita
Updated on 22-May-2020 11:41:52

585 Views

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

Event Occurring When Element is Dragged Completely in JavaScript

Ayyan
Updated on 22-May-2020 11:30:29

131 Views

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

JavaScript Drag Event Handling

Anvi Jain
Updated on 22-May-2020 11:28:34

158 Views

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

Usage of onsearch Event in JavaScript

Abhinanda Shri
Updated on 22-May-2020 11:28:01

389 Views

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);          }          

Usage of oninvalid Event in JavaScript

Smita Kapse
Updated on 22-May-2020 11:17:18

297 Views

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:                              

Usage of onfocusout Event in JavaScript

Abhinaya
Updated on 22-May-2020 11:16:24

285 Views

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";          }          

Advertisements