Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> JavaScript

JavaScript

  1. JavaScript में किसी एट्रिब्यूट का मान कैसे बदलें?

    अवलोकनकिसी एट्रिब्यूट का मान बदलने के लिए DOM एलिमेंट की प्रॉपर्टी को सीधे असाइन करें।उदाहरण<!DOCTYPE html> <html>    <body>       <img id="HTML5" src="https://www.tutorialspoint.com/html5/images/html5-mini-logo.jpg" width="200&q

  2. JavaScript में onblur इवेंट का उपयोग क्या है?

    अवलोकनonblur इवेंट तब ट्रिगर होता है जब तत्व फोकस खो देता है।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Write below:</p>       <input type = "text" onblur = "newFunc(this)">       <

  3. JavaScript में onfocus इवेंट का उपयोग क्या है?

    अवलोकनonfocus इवेंट तब ट्रिगर होता है जब तत्व फोकस प्राप्त करता है।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Write below:</p>       <input type = "text" onfocus = "newFunc(this)">     &nbs

  4. JavaScript में onfocusin इवेंट का उपयोग क्या है?

    अवलोकनonfocusin इवेंट तब ट्रिगर होता है जब कोई तत्व फोकस प्राप्त करने वाला होता है।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Write below:</p>       <input type="text" onfocusin="newFunc(this)"> &nbs

  5. JavaScript HTML DOM में nodeName प्रॉपर्टी क्या है?

    अवलोकनnodeName प्रॉपर्टी नोड का नाम निर्दिष्ट करती है (तत्व नोड के लिए टैग नाम)।उदाहरण<!DOCTYPE html> <html>    <body>       <h1 id="id1">Tutorials</h1>       <p id="id2">Demo Content</p>   &nb

  6. JavaScript HTML DOM में nodeValue प्रॉपर्टी क्या है?

    अवलोकनnodeValue प्रॉपर्टी नोड के मान को प्राप्त या सेट करती है। आपको विशिष्ट नोड निर्दिष्ट करना होगा।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Get the node value</p>       <button>Demo Button Text</button>  

  7. JavaScript में onfocusout इवेंट का उपयोग क्या है?

    अवलोकनonfocusout इवेंट तब ट्रिगर होता है जब कोई तत्व फोकस खोने वाला होता है।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Write below:</p>       <p>After losing focus, the background color of input check will change.</p

  8. JavaScript में oninput इवेंट का उपयोग क्या है?

    अवलोकनoninput इवेंट तब होता है जब उपयोगकर्ता इनपुट बॉक्स में मान दर्ज करता है।उदाहरण<!DOCTYPE html> <html>    <body>       <p>Write below:</p>       <input type = "text" id = "newInput" oninput = "input

  9. JavaScript में इमेज बॉर्डर की चौड़ाई कैसे सेट करें?

    अवलोकनइमेज बॉर्डर की चौड़ाई सेट करने के लिए borderImageWidth प्रॉपर्टी का उपयोग करें।उदाहरण<!DOCTYPE html> <html>    <head>       <style>          div {             background-color:gray;   &

  10. JavaScript में oninvalid इवेंट का उपयोग क्या है?

    अवलोकनoninvalid इवेंट तब ट्रिगर होता है जब <input> फ़ील्ड का मान अमान्य होता है (उदाहरण: आवश्यक फ़ील्ड खाली)।उदाहरण<!DOCTYPE html> <html>    <body>       <script>          function resetFunct() {       &nb

  11. JavaScript में abort इवेंट का उपयोग क्या है?

    अवलोकनonabort इवेंट तब ट्रिगर होता है जब इमेज का लोडिंग उपयोगकर्ता द्वारा रद्द कर दिया जाता है।उदाहरण<!DOCTYPE html> <html>    <body>       <script>          function abortFunc() {             ale

  12. JavaScript में फ़ंक्शन के निष्पादन को कैसे रोकें?

    अवलोकनsetTimeout() द्वारा सेट किए गए टाइमर को रद्द करने के लिए clearTimeout() मेथड का उपयोग करें।उदाहरण<html>    <head>       <title>JavaScript clearTimeout() method</title>       <script>          <!--

  13. JavaScript में onhashchange इवेंट का उपयोग क्या है?

    अवलोकनonhashchange इवेंट तब होता है जब URL का एंकर भाग (हैश) बदलता है।उदाहरण<!DOCTYPE html> <html>    <body onhashchange="newFunc">       <button onclick="functionChange()">Click to change anchor</button>      

  14. JavaScript में onpageshow इवेंट का उपयोग क्या है?

    अवलोकनonpageshow इवेंट तब ट्रिगर होता है जब उपयोगकर्ता नए वेब पेज पर पहुँचता है (पेज लोड या बैक/फॉरवर्ड नेविगेशन)।उदाहरण<!DOCTYPE html> <html>    <body onpageshow = "newFunc()">       <p>On first visit, a welcome message is visible.</p>

  15. JavaScript में onbeforeunload इवेंट का उपयोग क्या है?

    अवलोकनonbeforeunload इवेंट दस्तावेज़ अनलोड होने से ठीक पहले ट्रिगर होता है, जिससे उपयोगकर्ता को पुष्टि संदेश दिखाया जा सकता है।उदाहरण<!DOCTYPE html> <html>    <body onbeforeunload="return myFunction()">       <a href="https://www.qries.com

  16. JavaScript में onpagehide इवेंट का उपयोग क्या है?

    अवलोकनonpagehide इवेंट तब ट्रिगर होता है जब उपयोगकर्ता पेज छोड़कर दूसरे पेज पर जाता है (रिफ्रेश, लिंक क्लिक आदि)।उदाहरण<!DOCTYPE html> <html>    <body onpagehide="newFunc()">       <p>Close the page and see what happens!</p>   &nb

  17. JavaScript में onscroll इवेंट का उपयोग क्या है?

    अवलोकनonscroll इवेंट तब होता है जब किसी तत्व का स्क्रॉलबार स्क्रॉल किया जाता है।उदाहरण<!DOCTYPE html> <html>    <head>       <style>          div {             border: 2px solid blue;    

  18. JavaScript में onresize इवेंट का उपयोग क्या है?

    अवलोकनonresize इवेंट तब ट्रिगर होता है जब ब्राउज़र विंडो का आकार बदलता है। window.outerWidth और window.outerHeight से नया आकार प्राप्त करें।उदाहरण<!DOCTYPE html> <html>    <head>       <script>          function resizeFunction

  19. JavaScript में document.title का उपयोग कैसे करें?

    अवलोकनdocument.title प्रॉपर्टी दस्तावेज़ का शीर्षक प्राप्त या सेट करती है।उदाहरण<!DOCTYPE html> <html>    <head>       <title>Demo Title</title>    </head>    <body>       <script>   &nbs

  20. JavaScript में onunload इवेंट का उपयोग क्या है?

    अवलोकनonunload इवेंट तब ट्रिगर होता है जब पेज अनलोड या रिफ्रेश होता है।उदाहरण<!DOCTYPE html> <html>    <body onunload="newFunc()">       <p>Close the page and see what happens!</p>       <p>This event may give unex

Total 5935 -कंप्यूटर  FirstPage PreviousPage NextPage LastPage CurrentPage:236/297  20-कंप्यूटर/Page Goto:1 230 231 232 233 234 235 236 237 238 239 240 241 242