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:
- ask users turn off popup blocker (not nice).
- change scripts work in response link or button click.
- use fake windows such jquery ui dialog.
Comments
Post a Comment