calling javascript functions

A

AAaron123

The following works, almost.

The address of the image appears in the titlebar(topmost area) as well in a
bar under the title bar.

I'd prefer that the address did not show at all.

Possible?

<script type="text/javascript">

function popupWindow(path, w, h) {

catWindow = window.open( path,"catWin", "width="+w+", height="+h+",resizable
= yes ,scrollbars = yes,status = no,titlebar =no,toolbar = no ")

}

</script>

Is the way I concatenated the parameters correct? Seems unusal to me but it
appears to work.



I call it thusly:

<a href="javascript:popupWindow('Images/MasterImage.jpg',300,300)"
>Picture</a>

I'd like to specify the width and height of the .jpg image rather than
300,300.

Do you know how to do that?



Thanks for any help at all
 
C

Cowboy \(Gregory A. Beamer\)

If you want to specify an image size, you want to create a image handler
page rather than just open the image. The same is true if you want to hide
the image URL.
 
A

AAaron123

I don't want to force the image size.

What I was asking was how to determine the number of pixels (width, height)
in the .jpg file.

I'll take your advice and create a page but still need to know how big to
create it.

thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top