在新的固定大小窗口中打开 HTML 链接 [英] HTML Open Link in New Fixed Size Window

查看:54
本文介绍了在新的固定大小窗口中打开 HTML 链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我正在制作的联系我们表单添加一个弹出确认窗口.我想要一个新的 html 页面在一个新窗口中打开,该窗口具有固定大小并在用户屏幕中居中.

I am trying to add a pop up confirmation window for a contact us form I am making. I want a new html page to to open up in a new window that has a fixed size and is centered in the users screen.

理想情况下,我只想使用 HTML/CSS,但我不知道这是否可行.如果不是,我不介意使用 Javascript 或 jquery,如果它更简单.

Ideally I would love to only use HTML/CSS but I don't know if that is even possible. If not I don't mind using Javascript or jquery if it's simpler.

谢谢!

推荐答案

<a href="#" onClick="window.open('yourpage.htm','pagename','resizable,height=260,width=370'); return false;">New Page</a><noscript>You need Javascript to use the previous link or use <a href="yourpage.htm" target="_blank">New Page</a></noscript>

这篇关于在新的固定大小窗口中打开 HTML 链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆