javascript - Button Not Working in Google Chrome -


I have a button that calls a javascript function with faxbox. It's working fine in all browsers except Google Chrome

Here is the javascript function:

  function batch_pop (list) {if (window.showModalDialog) {var start_date =. $ ('# Begin_datum') Val (); Var end_date = $ ('# eind_datum'). Val (); If (end_date! = '') {End_date = end_date + "23:59"; } Var batch_bedrag = $ ('# batch_bedrag'). Val (); // zoeken.batch_bedrag.value; Var klant = $ ('# klant'). Val (); // zoeken.klant.value; Var locatie = $ ('# locatie'). Val (); // zoeken.locatie.value; Var order = $ ('Orderner'). Val (); // zoeken.product.value; Var betaalwijze = $ ('# betaalwijze'). Val (); //zoeken.betaalwijze.value; Atri ('href') + '/ batchengerneri? Type # TB_frame and Model = true ':' iframe '. Type: 'iframe' model: true}); ATR ('Action', SP Parent. $ ('Base: first'). Atr ('href') + '/ batchjinren /? Start_data =' + start_date + '& amp; eind_datum =' + end_date + '& amp; ; Batch_bedrag = '+ batch_bedrag +' & amp; klant = '+ klant +' & amp; location based = '+ location based +' & amp; ordernr = '+ ordernr +' & amp; betaalwijze = '+ at ('Target', $ (this) .attr ('name'));}) $ ('[name = checkbox_selectie]'). Submit ();}, 300); } And {Melding ('004-1', 'YouTube Browser Writ NIT OnDestind Door Protokwash', 'More Information to Contact Promo System \ nTell: 0184-602300, E-mail: support@protruckwash.nl') ; }}  

This is my button which is calling my JS function:

  & lt; A href = "javascript: zero (0);" Class = "ico-button" onclick = "batch_pop (xajax.getFormValues ​​('checkbox_selectie'));" & Gt;  

I do not know why this is not working in Google Chrome ...

window.showModalDialog window.open with window and it works now! Thanks


Comments