gpt4 book ai didi

javascript - 打开表单会产生新的调整大小的窗口

转载 作者:行者123 更新时间:2023-11-28 09:59:03 25 4
gpt4 key购买 nike

<script type="text/javascript">
function submitWindow() {
..
// URL, name and attributes
window.open('http://isivmwebtest.isolutionsinc.com/ComparativePricing/Content/PriceLookup.aspx','windowNew','width=300, height=300');
return true;
}
</script>
<div class="form-outer">
<div class="resource-form">
<h3>FREE National Price-Look Up Tool</h3>
<h4>Powered by ComparativeHospitalData.com</h4>
<form action="http://isivmwebtest.isolutionsinc.com/ComparativePricing/Gateway.aspx" method="post" onsubmit="return submitWindow()">
<input type="hidden" name="RemoteAction" value="PriceLookup" />
<strong>Enter HCPCS Code(s)</strong><br />
<input onfocus="this.value=''" type="text" name="codes" value="XXXXX or XXXXX,XXXXX or XXXXX-XXXXX" /><br /><br />
<strong>Enter HCPCS Description</strong><br />
<input onfocus="this.value=''" type="text" name="desc" value="partial name okay" /><br /><br />
<input type="submit" value="Search" />
</form>
<span style="font-size:0.8em;font-style:italic;padding-top:10px;">*Search will lead you away from this site.</span>
</div>
</div>

我希望此表单在一个非常小的弹出窗口中显示结果。我用了很多方法都没有成功。现在我正在使用一些Javascript来让它工作,但它似乎仍然没有做任何事情。有什么帮助吗?

最佳答案

除了宽度和高度之外,您还可以在 specs 参数中传递其他参数。看这里。 http://www.w3schools.com/jsref/met_win_open.asp

您可以删除标题栏、状态栏等以使其变小。

尝试:

window.open('http://isivmwebtest.isolutionsinc.com/ComparativePricing/Content/PriceLookup.aspx','windowNew','width=300,height=300,location=no,menubar=no,status=no,toolbar=no');

关于javascript - 打开表单会产生新的调整大小的窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9506739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com