Suppose ask() is abused slightly to show a small form for input from the user. All <input> elements inside the popup get a click event and are populated with text.
Code: [Select]
/Themes/default/scripts/script.js (working copy)
@@ -189,7 +189,7 @@
.html('<section class="nodrag confirm">' + string + '</section><footer><input type="button" class="submit'
+ (modal_type == 1 ? ' floatleft" /><input type="button" class="delete floatright" />' : '" />') + '</footer>')
.each(animate_popup)
- .find('input')
+ .find('footer input')
.val(we_cancel)
.click(function () {
close_window();