|
基础.html
<html>
<head>
<title>showModalDialog</title>
<script type="text/javascript">
function sMD(){
window.showModalDialog("弹出.html",window);
}
</script>
</head>
<body>
<input id="MD" type="button" value="showModalDialog"/>
</body>
</html>
弹出.html
<html>
<head>
<title>ModalDialog</title>
</head>
<body>
品种:<select>
<option value ="volvo">Volvo</option>
<option value ="UK">UK</option>
<option value="YORK">YORK</option>
<option value="audi">Audi</option>
</select><br>
年份:<input value=""/><br>
<input type="submit" value="提交"/>
</body>
</html>
从“基础.html”点击showModalDialog按钮,弹出“弹出.html”,此时VBA代码访问不到“弹出.html”,请教如何依次完成下面三个动作:
1、品种:选择Audi
2、年份:输入2018
3、提交:点击
|
|