trying to open a new tab in the browser |
I was wrong regarding that you should use a function to execute this line
window.open('https://duckduckgo.com/?t=ffab', '_blank'); i tried it directly in the controller and it worked <?php namespace App\Controllers; use CodeIgniter\Controller; class Controller1 extends Controller { public function index() { echo " <script> window.open('https://duckduckgo.com/?t=ffab', '_blank'); </script> "; } } but firefox told me that its preventing popups , so i enabled them for localhost , maybe you are disabling them. Increase Your Awareness
|
Messages In This Thread |
trying to open a new tab in the browser - by richb201 - 07-18-2020, 09:29 AM
RE: trying to open a new tab in the browser - by BlackBanana - 07-18-2020, 02:45 PM
RE: trying to open a new tab in the browser - by richb201 - 07-18-2020, 02:50 PM
RE: trying to open a new tab in the browser - by BlackBanana - 07-18-2020, 03:01 PM
RE: trying to open a new tab in the browser - by richb201 - 07-18-2020, 04:51 PM
RE: trying to open a new tab in the browser - by richb201 - 07-30-2020, 12:28 AM
RE: trying to open a new tab in the browser - by InsiteFX - 07-30-2020, 03:42 AM
RE: trying to open a new tab in the browser - by richb201 - 07-30-2020, 07:13 AM
RE: trying to open a new tab in the browser - by InsiteFX - 07-30-2020, 09:33 AM
RE: trying to open a new tab in the browser - by richb201 - 07-30-2020, 09:42 AM
RE: trying to open a new tab in the browser - by InsiteFX - 07-30-2020, 12:16 PM
RE: trying to open a new tab in the browser - by richb201 - 07-30-2020, 02:13 PM
|