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!

PLEASE HELP POPUP WINDOW

Status
Not open for further replies.

jumail

Programmer
Dec 14, 2001
6
ES
I CREATE A POPUP WINDOW WITH NO TOLLBAR, NO SCROLLBAR... DO YOU KNOW A WAY TO DRAG THIS POPUP WINDOWS ANYWHERE ON THE SCREEN???

CAN YOU CHECK IT OUT:
THANKS A LOT.
 
Hello jumail,
I checked your url.
I think you need this:
Here is the code:
<html>
<head>
<script language=&quot;javascript&quot;>
properties='scrollbars=0,toolbar=0,resizable=0,width=200,
height=200,top=100,left=200';
function popupwindow()
{
newwindow=window.open('','mywindow',properties);
}
</script>
</head>
<body onload=&quot;popupwindow()&quot;>

your HTML code

</body>
</html>


This will open a popup window you can drag anywhere in the screen.I specified a width and height of 200 px and the window is ubicated 100 px from the top and 200 px from left of the screen.
You put the dimensions and location you wish
Then I called the fuction with the &quot;onload&quot; event handler.
Here again you may wish to change how to call the function.
I hope this helps,

Best Regards

alexfusion
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top