Click to See Complete Forum and Search --> : Vladimir


Vladimir
04-27-2003, 12:52 PM
A can' t come to the transference of value from one file to another
This value must be after URL
Thanks a lot

<html>
<head>
<title>prob1</title>
<script language="JavaScript1.1">
function komm(da){
var lengw=da;
var url;
url="prob2.html?lengw="+da;
window.location.href = url;
}
</script>
</head>

<body>

<img onClick="komm('de')" src="fot/fl_de.jpg">
<img onClick="komm('ru')"src="fot/fl_ru.jpg">
</body>
</html>
--------------------------


<html>
<head>
<title>prob2</title>
</head>
<body>
<script language="JavaScript1.1">
document.write("lengw is : "+lengw);
</script>
</body>
</html>

pyro
04-27-2003, 01:33 PM
On your second page, you are going to want to use document.location.search to get the value that you passed along as the query string...

AdamGundry
04-27-2003, 02:21 PM
This script should be able to do what you need:
http://www.agbs.co.uk/scripts/get_extract.html

Adam