Script Function

                   Rajeev Ranjan Tiwari

आज हम जानेंगे script के बारे में दोस्तों आज के युग में

कोइ भी गेम एनीमशन इफैक बनाने के लिए script  का पूरा नोलेज होना चाहिए तभी आप एक developer बन सकते हैं

तो आज हम इसी के बारे में जानेंगे 

 

(1)  

<html>

<body>

Select some of the text: <input type="text" value="Hello world!" onselect="myFunction()">

<script>

function myFunction() {

  alert("You selected some text!");

}

</script>

</body>

</html>

(2)  

<html>

<body>

<input type="text" value="Hello world!" onselect="myFunction()">

<p id="demo"></p>

<script>

function myFunction() {

  document.getElementById("demo").innerHTML = "You selected some text!";

}

</script>

</body>

</html>

(3)

<html>

<body>

  <input type="button" value="Click me..." onclick="alert('Thanks, I feel better now!');">

</body>

</html>

(4)

<html>

<body>

<button onclick="myFunction()">Click me</button>

<p id="demo"></p>

<script>

function myFunction() {

  document.getElementById("demo").innerHTML = "Hello World";

}

</script>

</body>

</html>

(5)  <!DOCTYPE html>
<html>
<body>

<p id="demo" onclick="myFunction()">Click me to change my text color.</p>

<script>
function myFunction() {
  document.getElementById("demo").style.color = "red";
}
</script>

</body>
</html>

अंत मे अगर इस पोस्ट से आपको कुछ फायदा हुवा हो तो इसे दुसरो के साथ भी share करे ताकी दुसरो का भी फायदा हो. इस पोस्ट को पूरा पढ़ने के लिए आपका धन्यवाद और बहुत शुक्रिया.
Thanks friend posted by Rajeev Ranjan Tiwari

Comments

Popular posts from this blog

OT Technician

D Pharma

Tor Browser