Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Quick question on passing reference to url


  • From: david_chance at yahoo.com.au (David Chance)
  • Subject: [Javascript] Quick question on passing reference to url
  • Date: Wed Nov 29 12:01:07 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