i have a function called max(form) in the javaScript file .. and this is been called fromt he HTML page ...
and below the HTML page there is a button.. where when u click it, the function menu () should be called ... but
in the function menu we should call the function max(form) .. how do we do it ?? idea in brief .. how do we call the function max(form) from the function menu..
Question 2. ) calling a function means, textual pasting of the codes of a function...
2 969
i have a function called max(form) in the javaScript file .. and this is been called fromt he HTML page ...
and below the HTML page there is a button.. where when u click it, the function menu () should be called ... but
in the function menu we should call the function max(form) .. how do we do it ?? idea in brief .. how do we call the function max(form) from the function menu..
Question 2. ) calling a function means, textual pasting of the codes of a function...
- function menu() {
-
var form = // get the form here
-
max(form); //calling max(form) from the function menu
-
}
2.) NO. Calling a function is just writing the function name and passing the required parameters if any.
P.S A Javascript tutorial is not a bad thing to go through at this stage.
-
-
function max(form){
-
return "this is the code that will be returned";
-
}
-
-
function menu(){
-
alert(String(max));
-
}
-
-
menu()
shows:
"function max(form) {
return "this is the code that will be returned";
}
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Muthu |
last post by:
I've read calling conventions to be the order(reverse or forward) in
which the parameters are being read & understood by compilers.
For ex. the following function.
int Add(int p1, int p2, int...
|
by: John Friedland |
last post by:
My problem: I need to call (from C code) an arbitrary C library
function, but I don't know until runtime what the function name is,
how many parameters are required, and what the parameters are. I...
|
by: John Friedland |
last post by:
My problem: I need to call (from C code) an arbitrary C library
function, but I don't know until runtime what the function name is,
how many parameters are required, and what the parameters are. I...
|
by: astri |
last post by:
#include "Unit1.h"
#include "math.h"
#include "fixed_math.hpp"
#include "algorithm.h"
#define MBIT 0x4000
#define CBIT 16
long constbl;
void __fastcall TForm1::Button1Click(TObject...
|
by: sulekhasweety |
last post by:
Hi,
the following is the definition for calling convention ,which I have
seen in a text book, can anyone give a more detailed explanation in
terms of ANSI - C
"the requirements that a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |