Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open a new window when you access a link

Status
Not open for further replies.

wf

Programmer
Feb 1, 2001
32
US
I want to open a new window when I click on a link, like window.open does (not like window.navigate).

I also want that that new page doesn't has the internet toolbar(the one with the print and back buttons).

EX: I want exactly the same thing as when I click on the
"Tell a friend" link in the upper-left corner of this page.

Thanks...
 
>I want to open a new window when I click on a link, like window.open does (not like window.navigate).

I am not sure I understand what you are saying but I use this to open a new window when you click on a link
<A HREF=&quot;[red]url goes here[/red]&quot; TARGET=_new>click here to go to this link opened in a new page</A>

>I also want that that new page doesn't has the internet toolbar(the one with the print and back buttons).

As far as setting the toolbars I am not sure how to do that. I am fairly new to web design myself.

>EX: I want exactly the same thing as when I click on the
&quot;Tell a friend&quot; link in the upper-left corner of this page

Did you try the view source, that might help.

hope this helps you out.

Bryant
 
The target instructions works well but I still don't know how to work with the toolbars.
Than you, bryant89.

(I'm new in VI)


Also, how can I make a new page to appears always maximize.(Specially the ones that I call in a link).

Thanks again.
 
<A href=&quot;#&quot; onclick=&quot;window.open('yourfile.htm','win1','toolbar=no,menubar=no'> tell a friend</a>
This is a bare-bones example. Please, lookup help on window.open in MSDN help, and you'll see that the third parameter of that function (&quot;window features&quot;) is used exactly for this purpose - to define how the new window will look like.

I hope this helped.

---
---
 
I found the article in MSDN but I wrote the code in all the possible ways an it says &quot;Cannot use parentheses when calling a Sub&quot;

 
This is not a vb script coding deal. It's html/JavaScript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top