2014年11月26日 星期三

[JavaScript] 呼叫function



把JavaScript的function放在<head>裡面。

return data  // 用 return 關鍵字傳回資料


<html>
<head>
<title></title>

<script language="javascript">
  function run_rss(sID){
window.open('rss.asp?sid='+sID);
  }
</script> 

</head>


if Rs("edit_group") = "68" then
sID= Rs("edit_group")
%>
<script> run_rss(this, <%=sID%> );</script>
<%
end if
<body>
</body>
</html>




參考 :
http://taiwantc.com/js/js_tut_a5.htm

沒有留言:

張貼留言