Solved

open resizable window in given position

Posted on 1998-08-27
2
193 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 100 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

623 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