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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open custom window

Status
Not open for further replies.

spyderco

Programmer
Jan 23, 2005
107
US
All I need is to open a window with an HTML/JS link to a specific size and without all the toolbars, scrollbars and extra stuff.

I tried
Code:
<a href="yourcurrentfile.html"
onClick="window.open('yournewfile.html','nameforyournewbrowserwindow',
'width=275,height=425,status=no,toolbar=no,location=no,
menu=no,scrollbars=yes,resizable=yes')">here</a>

But to no avail. Anyone have the code handy?
 
Try this.
[tt]
<a href="javascript:void(0)" onClick="window.open('yournewfile.html','nameforyournewbrowserwindow',
'width=275,height=425,status=no,toolbar=no,location=no,menu=no,scrollbars=yes,resizable=yes')">
here</a>
[/tt]
[1] change the href part
[2] do not break the line within the parameter (the 3rd).

 
If you don't want scrollbars, why are you passing "scrollbars=yes"?

You can use this for your third parameter:

Code:
width=275,height=425,resizable=yes

to do achieve what you are after.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top