javascript - popup windows in not opened in codeigniter -
i using codeigniter , in 1 of views have following function triggered when employee code not exist in database(using jquery ajax - works fine). confirm popup displayes when entered code not valid when result of confrim true, following code not fire popup window!
function popup(){ if(confirm("employee_code not available! \nsave code new employee?")){ //var new_emp_window = "<?php echo base_url().'index.php/it_inventory/new_employee'; ?>"; widnow.open('www.google.com', 'width=500, height=500'); }else{ alert("ohh!"); $('#employee_code').val('').focus(); } }
first of change
www.google.com
http://www.google.com. browser handles urls without protocol prefix relative paths.check popup blocker not active on browser.
Comments
Post a Comment