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();         }     } 

  1. first of change www.google.com http://www.google.com. browser handles urls without protocol prefix relative paths.

  2. check popup blocker not active on browser.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -