Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I want to using

HTML
<div önload="func();"></div>

instead in
HTML
<body  önload="func();">
in user control but does not working.
thank you for help.
Posted
Updated 28-Nov-11 20:17pm
v3
Comments
Karthik Harve 29-Nov-11 2:15am    
try by adding id and runat="server"..

1 solution

try like this..

HTML
<div onload="return func();">
 
</div>


and add "return true" or false in function..

hope this helps..
 
Share this answer
 
Comments
Hassan Sajedi 29-Nov-11 2:32am    
thank you but this code does not worked. my code is:

<script type="text/javascript" src="http://localhost/DotNetNuke4-9-5/DesktopModules/ThumbnailGallery/ThumbnailGallery/js/easyALBUM.js"></script>
<style type="text/css" media="screen">
@import "http://localhost/DotNetNuke4-9-5/DesktopModules/ThumbnailGallery/ThumbnailGallery/css/easyALBUM.css";
</style>
<div önload="return TJK_Gallery('gallery');">
</div>

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