[Javascript] Quick question on passing reference to url
David Chance
david_chance at yahoo.com.au
Wed Nov 29 11:53:54 CST 2006
Using this quick script to show an image and open into a new
window.
When I use the ImgUrl to display the image it doesn't display.
It is looking for file img on my local drive.
Why isn't it passing the url? It correctly passes the url in the
ImageWindow function to open the new window.
I havent used javascript in a few years so i know this is a very
newbie question so sorry 4 that.
David
<script>
var ImgUrl="http://mysite.verizon.net/stove1.jpg"
</script>
<A HREF="javascript:ImageWindow(ImgUrl)"><IMG SRC='ImgUrl'
width="300"></A>
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the Javascript
mailing list