shashgo
09-23-2002, 08:09 PM
I hav two questions
1) I need to know how I can use javascript to refer to pages that are linked to. I tried to display document.referrer on the new page but it doesnt return anything
so if I have a page (say one.htm) with a link
<a href="two.htm">two</a>
and in two.htm I write
<script language="javascript">
document.write("Referred to by: "+document.referrer);
</script>
then shouldnt h output be Referred to by: one.htm
I only get Referred to by:
Why is it not working? What am I doing wrong?
-----------------
2) I want to design a web page where I use javascript to load all the images on my hard drive without me having to specify each individual name. The images have filenames that are 1.jpg, 3.jpg, 4.jpg, 7.jpg, 10.jpg, 15.jpg, 30.jpg,... no order.
How can I accomplish this?
1) I need to know how I can use javascript to refer to pages that are linked to. I tried to display document.referrer on the new page but it doesnt return anything
so if I have a page (say one.htm) with a link
<a href="two.htm">two</a>
and in two.htm I write
<script language="javascript">
document.write("Referred to by: "+document.referrer);
</script>
then shouldnt h output be Referred to by: one.htm
I only get Referred to by:
Why is it not working? What am I doing wrong?
-----------------
2) I want to design a web page where I use javascript to load all the images on my hard drive without me having to specify each individual name. The images have filenames that are 1.jpg, 3.jpg, 4.jpg, 7.jpg, 10.jpg, 15.jpg, 30.jpg,... no order.
How can I accomplish this?