Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everybody, I've been looking for the answer for a while and i was wondering, if i can execute a function when the same script is loaded in javascript? for a example;

Script loaded = do function 1()
so when the script loads, it will execute function 1 automatically.
so i anyone has idea's please share with me!!!! thanks in advance!!!!!!!!
Posted
Comments
Sergey Alexandrovich Kryukov 8-Aug-12 20:03pm    
What language is that so you can "do function 1()"? I cannot recognize it... What does it mean: "same script"?
--SA
tony karant 8-Aug-12 20:06pm    
its just a example, it isn't any language. all i want is when the script loads execute a specific function, im not very good at explaining thing's, sorry

1 solution

Hi,

you can check this[^] forum for your answer.

hope it will help you,

Thanks
-Amit Gajjar
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900