Put your javascript code within the body of your page:
<html>
<body>
<script language="javascript">
alert("I am loading...")
</script>
JS test
</body>
</html>
Simply change the javascript code from my "alert(.....)" to your code.
Mark
jamil tamimi <[EMAIL PROTECTED]> wrote:
hi, how can i do a javascript function when the page load without use the
onload event in the body tag. i want the attributes in the page load and
related to the page every time load like
Button1.Attributes.Add("onclick", "setData()")
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/