简体   繁体   中英

Popup for webpage?

I'm attempting to add a sort of popup window to my html file. To give a good example of what exactly I'm looking for there is this website http://www.goodsearch.com/zipcar/coupons?open=3709630 when you click on one of the coupons a sort of pop up shows up Does anyone know how would I do something like this? Would I use JavaScript?

I tried doing the following in JavaScript, but it's not exactly what I want:

window.prompt('defaulttext', 'defaulttext')

I would appreciate any help!

Simple Modal是一个不错的基本jQuery插件,有关文档和插件,请参见网站

You can use jQuery UI Dialog . Example:

$( "your-selector-here" ).dialog();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM