簡體   English   中英

在HTML文件中加載VBscript

[英]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文件的父文件夾中)。

確保您提供了正確的文件名和正確的位置,這應該可以工作

<script type="text/vbscript" src="VBScript_file_URL"></script>

檢查這也是這個 ,也使文件確認是否存在。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM