Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

open resizable window in given position

Posted on 1998-08-27
2
Medium Priority
?
197 Views
Last Modified: 2010-04-09
I am wondering how I can use the open.window to set the new windows position on the screen and make the window resizable by "clicking and dragging borders".
How do I do this?
0
Comment
Question by:Krafer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:wsanchez
ID: 1837116
Try this.  I'm don't know how to place it at a ceratin position but this will make the window resizable.

<script language="JavaScript">
<!-- hide
browser = (navigator.appVersion.indexOf("ac") == "-1");

function openWin(url) {
var popupWin=null;

popupWin = window.open(url,"popupWin",'toolbar=0,location=0,directories=0,status=0,menubar=0,
   scrollbars=1,resizable=1,width=400,height=500');

        if (navigator.appVersion >= '3') {
        popupWin.focus();
        }
}

// done hiding -->
</script>

<A HREF="test1.htm" onClick='if (browser) {openWin("html.htm"); return false}'>Click this.</A>

0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 200 total points
ID: 1837117
window.open(url,"popupWin",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=500,left=100,top=150,screenX=100,screenY=150')

left and top are MSIE, screenX and screenY are netscape - each will ignore the others and version 3 browsers will ignore all four.

Let's share the points ;-)

Michel
PS: The test for focus should be
if (window.focus) popupWin.focus();
since MSIE 3 does not support the focus.


0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question