Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Open Link in New Fixed Size Window

Tags:

html

popup

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!

like image 936
TJH Avatar asked Mar 16 '14 23:03

TJH


1 Answers

<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>
like image 78
Angelo Avatar answered Nov 16 '22 15:11

Angelo