Reputation: 173
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!
Upvotes: 0
Views: 91
Reputation: 1300
You can use jQuery UI Dialog. Example:
$( "your-selector-here" ).dialog();
Upvotes: 1
Reputation: 3064
Simple Modal is a decent basic jQuery plugin, see the website for documentation and the plugin.
Upvotes: 1