Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open html link in new window with no browser toolbars

I know that I can open html links in a new window by using target="_blank", but how can I hide/disable all the browser toolbars ?

like image 502
digy Avatar asked Jun 05 '09 06:06

digy


People also ask

How do I open a URL in a new browser window?

Open in a new window To open a link in a new browser window, hold the Shift on then click the link or right-click the link and select Open link in New Window.

How do I open a website in a new window HTML?

You just need an anchor ( <a> ) element with three important attributes: The href attribute set to the URL of the page you want to link to. The target attribute set to _blank , which tells the browser to open the link in a new tab/window, depending on the browser's settings.

How do I force a link to open in a new window?

How to Open Hyperlinks in a New Browser Tab or Window. The short answer is: just add a target="_blank" attribute to your links (anchor tags). Now when your visitors click that link, it will open in a new window or tab (depending on which web browser they are using and how they configured that browser).

How do I make a link not open in a new tab HTML?

The ability to open a link in a new tab/window is native functionality of many browsers. If you do not wish to allow this type of activity, then you need to notify the browser that your link is not truly a link. The easiest way to do so is to remove the href attribute from your a element.


2 Answers

You should use window.open('url to open','window name','toolbar=no');

like image 138
Svitlana Maksymchuk Avatar answered Oct 04 '22 06:10

Svitlana Maksymchuk


window.open('your url here','name','toolbar=0,status=0');

With Javascript. But it's better and usable, if you create a fake window with javascript.

like image 30
erenon Avatar answered Oct 04 '22 06:10

erenon