I am using the onload command, <body onLoad="window.resizeTo(?,?);", to set the size of a window opening up. I would also like to tell the window to have the toolbar off and other stuff. Can this be done with onload? This window is opened by many pages in the site and is called from a imagemap link...I would rather do it via onload so I don't have to edit all the other pages. Any ideas?

onload & window attributes? by Net55

Net55
Fri Apr 30 12:42:14 CDT 2004

http://www.webmasterworld.com/forum21/7449.htm

Why not just do a find and replace in html an do a popup?

<script>

//this goes in the head
// www.frontpagewiz.com

function doPopUp(){
doPopUpWindow = window.open
("http://www.frontpagewiz.com","FrontPageWiz_popup","locati
on=yes,directories=yes,toolbar=yes,menubar=yes,status=yes,s
crollbars=yes,resizable=yes,dependent=yes,left=100,top=100,
screenX=100,screenY=100,width=200,height=400");
}

</script>

-----------------

<!--this goes in the body, substitute anything you like
for Click Here, change this to your pop up page-->

<a href="javascript:doPopUp()">Click Here</a>

Net55
net55@frontpagewiz.com
http://www.frontpagewiz.com

>-----Original Message-----
>I am using the onload command, <body
onLoad="window.resizeTo(?,?);", to set the size of a
window opening up. I would also like to tell the window
to have the toolbar off and other stuff. Can this be done
with onload? This window is opened by many pages in the
site and is called from a imagemap link...I would rather
do it via onload so I don't have to edit all the other
pages. Any ideas?
>.
>

RE: onload & window attributes? by Net55

Net55
Fri Apr 30 14:04:17 CDT 2004

Yes, on the image link, when you click insert hyperlink
put this:

javascript:doPopUp()

---------------------
here is the code again:

<script>

//goes in head www.frontpagewiz.com

function doPopUp(){
doPopUpWindow = window.open
("http://www.frontpagewiz.com","fpwiz","location=yes,direct
ories=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes
,resizable=yes");
}

</script>

<!--goes in body-->
<a href="javascript:doPopUp()">Click Here</a>

or with fp image map

<p><map name="FPMap0">
<area href="javascript:doPopUp()" shape="polygon"
coords="14, 8, 43, 9, 41, 22, 11, 21, 4, 14">
</map>
<img border="0" src="myimage.gif" width="117" height="25"
usemap="#FPMap0">


Net55
net55@frontpagewiz.com
http://www.frontpagewiz.com
>-----Original Message-----
>One reason is that I am calling this from an image map
link...here is the html for that...
>
><tr><td width="780" colspan="3" height="83"><map
name="FPMap2"><area href="default.htm" shape="rect"
coords="101, 71, 161, 91"><area href="dkabout.htm"
shape="rect" coords="181, 70, 264, 91"><area
href="dkworkshops.htm" shape="rect" coords="293, 66, 387,
93"><area href="dkcontact.htm" shape="rect" coords="412,
68, 509, 93"><area target="_blank" href="dkregister.htm"
shape="rect" coords="519, 22, 639, 79"></map><img
border="0" src="images/gil-Sans-header3a.jpg"
usemap="#FPMap2" width="780" height="100"></td></tr>
>
>Can I put code in there? I would want the window to come
up on the last link...dkregister.htm
>.
>

RE: onload & window attributes? by anonymous

anonymous
Fri Apr 30 16:56:02 CDT 2004

Thank you very much!