Tuesday, 1 May 2018
LOAD FUNCTION CHANGE INTO FUNCTION IN JAVA SCRIPT


-----------------------------------------------------------------------------------------------------------------
LOAD FUNCTION CHANGE INTO FUNCTION
-----------------------------------------------------------------------------------------------------------------
<html>
<head>
<script type='text/javascript'>
window.onload = function() {
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
</script>
</head>
<body>
<img id="myImg">
</body>
</html>
//OR USE THIS CODE
<html>
<head>
<script type='text/javascript'>
function myFunction(){
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
</script>
</head>
<body onLoad = "myFunction()">
<img
id="myImg">
</body>
</html>
-----------------------------------------------------------------------------------------------------------------WINDOW LOAD FUNCTION CHANGE INTO FUNCTION
WINDOW LOAD FUNCTION= JAVASCRIPT+HTML CODE
FUNCTION= HTML CODE + JAVASCRIPT
-------------------------------------------------------------------------------------------------------------------
<script type='text/javascript'>
window.onload = function(){
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
myFunction();
</script>
<p id="myFunction()"></p>
<img id="myImg">
================================================================
<p id="myFunction()"></p>
<img id="myImg">
<script>
function myFunction() {
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
myFunction();
</script>
--------------------------------------------------------------------------------------------------------------------
FUNCTION RUN WITH BUTTON
BODY TAG CODE CHANGE INTO BUTTON
<body onLoad = "myFunction()">
<button type="button" onclick="myFunction()">Try it</button>
------------------------------------------------------------------------------------------------------------------
<html>
<head>
<script type='text/javascript'>
function myFunction(){
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
</script>
</head>
<button type="button" onclick="myFunction()">Try it</button>
<img id="myImg">
</html>
------------------------------------------------------------------------------------------------------------------FUNCTION USE IMAGE
------------------------------------------------------------------------------------------------------------------
<html>
<body>
<p id="myFunction()"></p>
<img id="myImg">
<script>
function myFunction() {
x = "https://www.w3schools.com/js/SMILEY.gif",
document.getElementById("myImg").src= x;
}
myFunction();
</script>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------Related movie you might like to see :

PASTE AS PLAIN TEXT WITH JAVA COMMA...

QUICK FIND TOOL GOOGLE CHROME FOR ...

WEB DEVELOPER 0.5

GOOGLE CUSTOM SEARCH BOX

GOOGLE CHROME UNUSED CSS OR JAVA S...

BUTTON PADDING CHANGE HEIGHT WIDTH

SHOPIFY FANCY BOX

BASIC ELEVATE ZOOM PLUS

ELEVATE ZOOM JAVA SCRIPT WITH ONE I...

SHOPIFY THEME SLIDER EDIT

INPUT BUTTON VALUE SWAP

BLOCK JAVA SCRIPT BY GOOGLE CHROME

JS TOOL / JS ERROR

QUIZ ACTIVITY MAKER

PRINT STAR PATTERN IN JAVA SCRIPT

DOLLAR SIGN $ USE IN JAVA SCRIPT WI...

RCSV EDITOR
?
+
X
Recommended for you
Loading..
Related Post for LOAD FUNCTION CHANGE INTO FUNCTION IN JAVA SCRIPT
LOAD FUNCTION CHANGE INTO FUNCTION IN JAVA SCRIPT ----------------------------------------------------------------------------------------------------------------- LOAD FUNCTION CHANGE INTO FUNCTION --------------------…
QUICK FIND TOOL GOOGLE CHROME FOR WEB PAGE ------------------------------------------------------------------------------------------------------------------- QUICK FIND TOOL GOOGLE CHROME FOR WEB PAGE RE…
PRINT STAR PATTERN IN JAVA SCRIPT ---------------------------------------------------------------------------------------------------------- PRINT STAR PATTERN IN JAVA SCRIPT ----------------------------------…
RCSV EDITOR ---------------------------------------------------------------------------------------------------------------- READ MORE: ----------------------------------------------------…
PASTE AS PLAIN TEXT WITH JAVA COMMAND ----------------------------------------------------------------------------------------------------------------- Read More: https://stackoverflow.com/questions/12027137/java…
GOOGLE CUSTOM SEARCH BOX ------------------------------------------------------------------------------------------------------------------ GOOGLE CUSTOM SEARCH BOX -----------------------------------…
GOOGLE CHROME UNUSED CSS OR JAVA SCRIPT 2017 ----------------------------------------------------------------------------------------------------------------------- READ MORE: --------------------------------------------…
WEB DEVELOPER 0.5 --------------------------------------------------------------------------------------------------------------------- WEB DEVELOPER 0.5 DOWNLOAD BY GIT HUB https://ch…
DOLLAR SIGN $ USE IN JAVA SCRIPT WITH JQUERY FILE ------------------------------------------------------------------------------------------------------------- DOLLAR SIGN $ USE IN JAVA SCRIPT WITH JQUERY FILE BECAUSE WITHOUT…
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.