Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to call a javascript function in pageload in asp.net website.without boy in .aspx page
pls help me
Posted
Comments
MrLonely_2 18-Nov-11 3:40am    
what does it mean (without boy in .aspx page )?
Al Moje 18-Nov-11 3:48am    
Example:

<body önload="resize_op5();">

There are many ways
1.
HTML
<body onload="CallFunction()">

2.
JavaScript
window.onload = CallFunction() { CallFunction() }

3.from code behind
C#
Page.RegisterClientScriptBlock("MyScript","<SCRIPT Language='JavaScript'> alert('Hello World'); </SCRIPT>"); 
 
Share this answer
 
Hi,

Try this in Client code (Example):
Java
<body  önload="resize_op5();">
 
Share this answer
 
v3

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