HTML Open Link in New Fixed Size Window

╄→尐↘猪︶ㄣ 提交于 2021-02-05 20:27:36

问题


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.

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.

Thank you!


回答1:


<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>


来源:https://stackoverflow.com/questions/22444356/html-open-link-in-new-fixed-size-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!