首次加载时调用此函数 [英] call this function in first load
本文介绍了首次加载时调用此函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
checkbox
,它在onclientclick
event中启用或禁用带有javascript.client的图像按钮.现在我想在首次加载时调用此函数?解决方案
然后将您放置的代码
如果(!isPostback) { // 此处的代码 }希望它能工作
试试.
如果这是一种javascript方法,则您想在网页中执行以下操作:
< body 加载 =" >
在主体的onload事件中调用javascript函数.试试这个.
hi
i have a server side checkbox
that in onclientclick
event enable or disable an client side image button with javascript.now I want to call this function in first load ?
解决方案
then that code u placed in
if(!isPostback) { //your code here }hope it will work
try out.
If it''s a javascript method, you want to do something like this in your web page:
<body onload="onclientclick()">
call javascript function at onload event of body. try this.
这篇关于首次加载时调用此函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文