Raffi a écrit :
>
Your suggestions for the anchor did not work however. I think the
reason is the anchor information in the html link is passed along to
script.xxx.
Isn't script.xxx a file (a php file whom script does something) ?
Once this script runs the "window.history .go(-1);" at the
end of the script
Why do you keep this JS in your file 'script.xxx' ?
You don't need it with the attached anchor (#choicexx)
I do not understand why you have to go back ...
'script.xxx' can't content what that is to display ?
The clicked link calls the file 'script.xxx'
with attached to its url :
- the variable and ist value : ?variable=choic exx
and
- the anchor to reach on (re)loading : #choicexx
It is simple and normal html feature
I think I need
something in script.xxx to make the iframe scroll to the anchor after
reloading.
on reloading you only need to reach the mentioned anchor
Try this example
- where the file calls itself instead to call another file
(isn't it this file which is the src of iframe ?)
- where there is a (JS) script about the attached variable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled </title>
<style type="text/css" title="text/css">
div p { height: 150px; border: 1px solid; margin-top: 50px; }
</style>
<script type="text/javascript">
onload = function() {
alert(window.lo cation.search);
}
</script>
</head>
<body>
<div>
<p><a href="?feature= 256#f256" name="f256">fea ture 256</a>
<p><a href="?feature= 001#f001" name="f001">fea ture 001</a>
<p><a href="?feature= 002#f002" name="f002">fea ture 002</a>
<p><a href="?feature= 003#f003" name="f003">fea ture 003</a>
<p><a href="?feature= 004#f004" name="f004">fea ture 004</a>
<p><a href="?feature= 005#f005" name="f005">fea ture 005</a>
<p><a href="?feature= 006#f006" name="f006">fea ture 006</a>
<p><a href="?feature= 007#f007" name="f007">fea ture 007</a>
</div>
</body>
</html>
--
Stephane Moriaux et son (moins) vieux Mac
Stephane Moriaux and his (less) old Mac already out of date