Click here to Skip to main content
13,048,584 members (91,493 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to using

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

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

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

try like this..

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

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

hope this helps..
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";
<div önload="return TJK_Gallery('gallery');">

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 29 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100