tayys Posted October 7, 2011 Share Posted October 7, 2011 I would like to open a new IE window. But, failed to do that. Is there any wrong with my statements? <?php $url='http://www.google.com'; $browser = new COM("InternetExplorer.Application"); $browser->Visible = true; $browser->Navigate($url); ?> Can anyone help me with this pls? Thank you. Regards, juzz Quote Link to comment https://forums.phpfreaks.com/topic/248599-open-a-new-window/ Share on other sites More sharing options...
codefossa Posted October 7, 2011 Share Posted October 7, 2011 You will want to use Javascript's window.open() function. Opening a new tab/window is client-side, not server-sided. Quote Link to comment https://forums.phpfreaks.com/topic/248599-open-a-new-window/#findComment-1276650 Share on other sites More sharing options...
tayys Posted October 7, 2011 Author Share Posted October 7, 2011 Is that possible to be done without a single click? I meant 'onclick' in javascript. Quote Link to comment https://forums.phpfreaks.com/topic/248599-open-a-new-window/#findComment-1276653 Share on other sites More sharing options...
codefossa Posted October 7, 2011 Share Posted October 7, 2011 The onClick() function would require clicking, unless you used another JS function to click it for you (which would be pointless). If you want it to open when loading the page, check out onload. If you're using JQuery, you can just put it within the ready function. Quote Link to comment https://forums.phpfreaks.com/topic/248599-open-a-new-window/#findComment-1276655 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.