onload & window attributes?

D

David Morel

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?
 
N

Net55

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
(e-mail address removed)
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?
 
N

Net55

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
(e-mail address removed)
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"> said:
Can I put code in there? I would want the window to come
up on the last link...dkregister.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top