Prompt in webpages

How can we use frappe.prompt in webpages?
I have included this javascript in my template but its not working:

	$('#confirm').off("click").on("click",	frappe.prompt([
        {'fieldname': 'birth', 'fieldtype': 'Date', 'label': 'Birth Date', 'reqd': 1}  
    show_alert(values, 5);
'Age verification',
'Subscribe me'

This is the button in html template:

<button class="btn btn-primary " id="confirm" >{{ _("Confirm Order") }}</button>

frappe.prompt only works inside the desk, maybe we can have a website version of it similar to msgprint