javascript - window.open(....) getting blocked in some browsers -


i have script opens window online application after executing other scripts.

window.open() not called on click. getting called in script , browser prevents new window appearing.

how overcome this?

here code..

window.open('/search/applyonline?jobid=".$jobdetails->getidjob()."',              'applyurljob',             'height=550,\               width=800,\              toolbar=no,\              directories=no,\              status=no,\              menubar=no,\              scrollbars=yes,\              resizable=yes,\              left=200,\              top=250') 

popup blockers block windows being opened not in response click event. therefore can:

  1. ask users turn off popup blocker (not nice).
  2. change scripts work in response link or button click.
  3. use fake windows such jquery ui dialog.

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -