how to call two javascript function on window onLoad event
can any one help me out.............
window.onload function
Moderator: General Moderators
Re: window.onload function
<script language="JavaScript">
function function1() {
window.confirm("Confirmation window");
}
</script>
<body onload="alert('hello'); function1();">
if that is what you seek ..
function function1() {
window.confirm("Confirmation window");
}
</script>
<body onload="alert('hello'); function1();">
if that is what you seek ..
Re: window.onload function
Code: Select all
function init() {
function1();
function2();
// etc...
}
window.onload = init();-
priyanksharma
- Forum Newbie
- Posts: 2
- Joined: Mon Oct 20, 2008 7:04 am
Re: window.onload function
i m try the same code and its working fine but "undefiend" is null or not an object error occurs javascript error occurs....Please help me out