views:

55

answers:

2

I would like to disable the toolbar via a link in my HTML. I've tried:

<a href="window.open(URL, '', 'toolbar=no,menubar=no...')">Click</a>

But it is not working. Could somebody provide some direction here?

I would prefer to not use Javascript.

A: 

This is not possible without the use of JavaScript and it is also not possible without opening the target page in a new window.

Something like this will work if you want to open the page in a new window and JavaScript is acceptable:

<a href="#" onClick="window.open('example.html', '', 'toolbar=no,menubar=no')">Click</a>
Trey
hey can we cal a java script function from html?? wil it work??
+1  A: 

I think could be no possible for security reasons, but you can open the new window and then

window.opener = self;
window.close();

but this will work unless client (browser) security is set to very low.

P.j.Valle