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

LOOKING FOR A MASTER!!!

Status
Not open for further replies.

jumail

Programmer
Dec 14, 2001
6
ES
jumail (Programmer) Dec 17, 2001
HI GUY,

I'M BUILDING MY WEBSITE , & I CREATE A POPUP WINDOW WITH NO TOOLBAR, NO SCROLLBAR,..., I NEED TWO THINGS:

-1: HOW CAN I DO TO DRAG THE WINDOW ANYWHERE IN THE SCREEN?
-2: WHAT IS THE JAVA SCRIPT FOR MINIMIZE WINDOW?

I'M NOT A KILLER IN PROG SO COULD YOU EXPLAIN ME STEP BY STEP PLEASE!

THANKS TO ALL, APRECIATE YOUR KNOWLEDGE,
JULIAN FROM SPAIN.

;
 
To move your window, you can use the function moveBy. That is:
Code:
window.moveBy(15,0)
would move your window 15 pixels to the right.
You can also use moveTo, to move to an exact position.

To minimize your window, you can use this function:
Code:
function Minimize() 
{
window.innerWidth = 100;
window.innerHeight = 100;
window.screenX = screen.width;
window.screenY = screen.height;
alwaysLowered = true;
}
But it will only work on Netscape. On IE you can call to window.blur() function, but it's a sort of fake minimize.
If you want a real "minimization", visit this link:

Greetings... from Spain, too ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top