Click to See Complete Forum and Search --> : New Window??


szms
08-25-2003, 09:17 AM
I have a link. I want to implement this link in that way so that when I will click it, it will creat a new window without any address bar or any other bar. Suppose that window just contain a picture of a Building. How to do that?

pyro
08-25-2003, 09:33 AM
Like this:

<a href="newpage.htm" onclick="window.open(this.href,'winname','height=300,width=400,scrollbars=1'); return false;">Open</a>

szms
08-25-2003, 09:39 AM
Thank you for your information. How do I disable the minmize and maximise option of that new window.

pyro
08-25-2003, 09:59 AM
In, IE, you can use something like this to create a chromeless popup: http://www.infinitypages.com/research/borderlesspopup.htm In other browsers, I think you are pretty much out of luck...

szms
08-16-2004, 09:02 AM
Well I am trying the following code using a function so that I can resize the window without modifying the original function. But it's giving me an error. Any suggestion?



<html>
<head>
<script type="text/javascript">
function open_win(href,menubar,height,width)
{
window.open(href,"my_new_window","toolbar=no, location=no, directories=no, status=no, menubar="+menubar+", scrollbars=yes, resizable=no, copyhistory=no, width="+width+", height="+height+" ")
}
</script>
</head>

<body>
<a target="_blank" href="http://www.php.net" onClick="open_win(this.href,yes,400,600);return false;">Open PHP</a>
</body>

</html>