paragkalra Posted January 19, 2009 Share Posted January 19, 2009 Hey folks, I am designing my own website. I want the tabs to open in new window with control remaining with the existing page. I tried using target="_blank" . The link is getting opened in the new tab but the control is being transfered to the new page where as I want it to stay with the parent page. I know to an extent it depends on the web-browser but still I want to know the best way to do so. Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/ Share on other sites More sharing options...
rhodesa Posted January 19, 2009 Share Posted January 19, 2009 with JUST html, i don't think this is possible. and personally, i hate it when sites do stuff like that. why should a window be open that i can't see Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-740667 Share on other sites More sharing options...
phparray Posted January 19, 2009 Share Posted January 19, 2009 I agree. I don't believe this is possible. Let your end users setup their browsers how they want. Open in tabs is an option in Firefox. Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-740709 Share on other sites More sharing options...
haku Posted January 20, 2009 Share Posted January 20, 2009 Target is now deprecated, for the very reason that you shouldn't be taking control out of the hands of your users. If they want to open a new window/tab, they can do it themselves. Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-740869 Share on other sites More sharing options...
paragkalra Posted January 22, 2009 Author Share Posted January 22, 2009 I am sorry for making a slight mistake in my post...I actually want that all the URLS/Hyperlinks present on the index page of my website should by default either open in new window or in new tab...i.e. I want my index page to always remain open on the browser... Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-743417 Share on other sites More sharing options...
phparray Posted January 22, 2009 Share Posted January 22, 2009 Use the target attribute. <a target="_blank" .... Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-743440 Share on other sites More sharing options...
pimpdaddydeluxe Posted February 9, 2009 Share Posted February 9, 2009 it's not really your place to decide. but i get it. in a page im building, my links are div containers, so you cant really right click and go down to open in new window/ tab, but this might work (emphasis on might): * { target-new: tab ! important } i haven't gotten it to work yet, but i'm probably just missing something. it's "theoretically" supposed to work if your browser knows what the hell you're talking about first. "tabs? dude, i got tabs?!" - good luck. Quote Link to comment https://forums.phpfreaks.com/topic/141484-html-tag-to-open-a-window-in-new-tab/#findComment-758545 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.