Forum Moderators: phranque

Message Too Old, No Replies

Pop up window

not using javascript

         

mrmean

9:16 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



I have created a pop up window that opens onclick over an image map.

It works fine, although the image map is near the bottom of my main page, and the pop-up opens at the top, forcing the main window to be viewed at the top when the pop-up is read or closed. IS there a way to dictate where your pop-up window will be located?

Also, there is no javascript involved...is this good or bad? IS it better to use javascript?

my code:

<img src="images/what.png" width="60" height="7" border="0" usemap="#Map">
<map name="Map">
<area onClick="MM_openBrWindow('pop-upURL','what','width=350,height=350')"
shape=rect coords=1,-2,59,9
href="mymainURL#" >
</map>

txbakers

9:50 pm on Mar 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I hate to break this to you, but the onClick event is a javascript function.

You can't open a new window without javascript unless you use target="_blank" which is deprecated in HTML4.01

mrmean

10:28 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



oh well, I guess what I meant was that my code doesn't use the javascript code that I've seen others have.