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

New Browser Window Configuration with no menu, toolbar, address bar 1

Status
Not open for further replies.

SJTech

Programmer
Jul 3, 2001
26
GB
I have a webpage which shows the location of a number of branches. If you click on the marker for a particular branch on the map I want a new browser window to open with the address and contact details. However, I want to turn off the toolbars, menubar, address bar and scroll bars and to open it in a standard size. How can I do this? Gary
Staff Officer(IT)
 
Put this in the header of the pages:
<script language=javascript type=&quot;text/javascript&quot;>

<!-- Hide script from old browsers
function newWindow(portgif) {
portWindow = window.open(portgif, 'portWin', 'width=373,height=191,scrollbars=no, status=no, location=no, right='+rightPos+' ,bottom=0')
portWindow.focus()
}

rightPos=0
if (screen) {
rightPos=screen.width-225
}
//End hiding script fom old browsers -->
</script>

Then your links look like this:
<a href=&quot;javaScript:newWindow('newPage.htm')&quot;> DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Worked a treat many thanks Gary
Staff Officer(IT)
 
I'm an extreme newbie to frontpage, and web design in general, so if I'm missing something simple, I apologize.

This works great, but are there alternative ways of doing this? In my case, I am using navigation in one frame to load a thumbnail (in an html page) in another frame. When they click on the thumbnail in the second frame is when I need the new browser window. The problem is I have over 100 of these individual html pages with thumbnails for the second frame, and if there is a way that isn't quite so time consuming to do this it would be terrific.

When I click on &quot;hyperlink properties&quot; for the link there is a list of &quot;common targets&quot;. Is there a way of creating a &quot;common target&quot; with the above in it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top