View Full Version : sizin and no toolbar pop up


Jchan
07-09-2003, 06:41 AM
I have searched on this forum and can't seem to find wat i wanted. :( I know this is the code for no toolbar pop up
<a href="#" onClick="MyWindow=window. open('PAGEURL','MyWindow'
,'toolbar=no,location=no,
directories=no,status=no,
menubar=no,scrollbars=no,
resizable=no,width=pic
ture width here,height=picture height here'); return false;">click here for picture</a>'MyWindow'

However im usin submit button.. and image map... is there any way to refine the code for submit button and image map. I just wanted to have toolbarless and sized pop up. :confused:
Can anyone help me?

Alcy
07-09-2003, 08:57 AM
http://www.lissaexplains.com/java4.shtml#window

For the image map, there should be portion that resembles this....
<area shape="rect" coords="#,#,#,#" href="javascript:popup()">

Remove the space in javascript

Jchan
07-10-2003, 01:16 AM
It doesn't seem to work :(

heres the code.. maybe u can figure out wats wrong

the code in the head part
<script language="javascript">
//<!--
function sign()
{ window.open ("http://users.glassed-tears.com/jocelyn/guestbook.cgi#sign" ","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>

<script language="javascript">
//<!--
function view()
{ window.open ("http://users.glassed-tears.com/jocelyn/guestbook.cgi" ","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>


the code in the image map part

<area shape="circle" coords="568,377,28" href=javascript:sign()>
<area shape="circle" coords="625,378,30" href=javascript:view()>

Alcy
07-10-2003, 01:27 AM
You had an extra quotation mark after the url ^^

<script language="javascript">
//<!--
function sign()
{
window.open ("http://users.glassed-tears.com/jocelyn/guestbook.cgi#sign", "popup", "width=400, height=400, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0")
}
-->
</script>

Jchan
07-10-2003, 01:55 AM
Thanks! IT works now :D thanks for your help!