stuwhisson
01-30-2003, 06:37 PM
Hi Guys
I am creating a website with a FAQ, about us links... I am lauching these in a new resized window - that appear over the main window. They all work fine when clicked - but how do I remove the Toolbar, Scroll Bar etc. So that all that appears is a nice window with the information from that link.
Cheers
Michael
01-30-2003, 07:29 PM
hi
use this scripts when you want to open a new window. Javascripts can set the default setting for the new window
<script language="javascript">
config='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= 400,height=200'
function popup(url)
{
window.open(url, "Haha", config)
}
</script>
modify your hyperlink in this format
<a href="javascript:popup('haha.html')">Haha</a>
the window.open accepts 3 variables: the url, the title, and the configuration of the new window... so use the above code and customize the way you want. Change the following variables or values
width=400 // new window width
height=200 // new window height
javascript:popup('haha.html') // destination url
and the
config='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= 400,height=200'
control the attribute of the new window... as you can see, the scrollbar, resize feature, menu bar, toolbar... are all turn off
hope this helps!:D
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.