The website uses onLoad to load a JavaScript file (.js).
I want to change one of the functions inside that js file using JavaScript.
The function is called "Hello13" and is among many other functions (hello5, hello6, etc..)
The Hello13 function looks something like this:
function hello13(x, y, z) {
if (x == null) {
//something, something.
}
if (y == null) {
//something else, something else.
}
if (z == null) {
//something diffrent, something diffrent.
}
}
So as you can see, when the function is called it is given some values (x, y, z).
I want to "hard code" the z to be my own value (inside the js file).
So it would be something like this after i have Programmatically changed it:
function hello13(x, y, z) {
z = MyValueOverride.
.....
How can i add my own "z" value inside the js file, After the site has loaded, using JavaScript?