Click to See Complete Forum and Search --> : calling functions


FredLabrosse
04-15-2003, 01:14 PM
Hey i'm a n00b so i'd like to know how you can call a function in another html page.

:confused:

thank you
http://www.selfknowledge.org/whoweare/thanks.jpg

guik
04-15-2003, 01:53 PM
i don't understand what you really want to do
if you want to call a function that is written in a .js file( e.g. fct_menudiv.js) you should write:
<script language= "javascript" src="fct_menudiv.js">
</script> in your html head tag and then you can call each function that is in the .js file
if you want to write all your javascript code in your head tag:
<script language= "javascript" >
function hereitis(){
...........
}
</script>

and then you call it like before by writting hereitis()
e.g if you want to call that function while your page is loading you should write:<body onload="hereitis()">

is that enough?