当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > onload

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 onload


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 259 ::
收藏到网摘: n/a

The <onload> element defines a script to be executed when the AppML application loads in a browser.
<onload>元素定义了在下载AppML应用程序时所执行的脚本程序。

Used in conjunction with the <script> form element.
可以与<script>表单元素一起使用。

Example
案例

This example will execute the Javascript "message()" when the AppML page loads.
当加载AppML页面时,这个案例将执行JS "message()"脚本程序。

<?xml version="1.0" ?>
<appml>
<database>
<connection>music_db</connection>
<sql>SELECT Title,Artist,Year FROM cd_catalog</sql>
</database>
<htmlform>
<sql>SELECT Title,Artist FROM cd_catalog</sql>
<onload>javascript:message()</onload>
<script type="text/javascript">
<!--
function message()
{
alert("This alert box was called on the onload event")
}
// -->
</script>
</htmlform>
</appml>


评论 (0) All

登陆 | 还没注册?