[英]Load VBscript in html file
我在用html加載VBscript時遇到問題。 我試圖測試一個簡單的示例,但是它不起作用:我的html:
<!DOCTYPE html>
<html>
<body>
<head>
<script src="login_VBS.vbs"> </script>
</head>
</body>
</html>
login_VBS.vbs:
msgbox "this is a message"
我無法使其變得簡單,但是當我從IE檢查視圖源時,vbs在我的源中不存在。 有任何想法嗎?
使用有效的 HTML-例如:
<!DOCTYPE html>
<html>
<head>
<script language="VBScript" type="text/vbscript" src="test00.vbs"></script>
</head>
<body>
</body>
</html>
和(或兩者)腳本語言規范; 當然,.vbs必須存在(如果不使用完整/絕對路徑,則在.html文件的父文件夾中)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.