[somewhat OT] dumb html / cgi question
jbv
jbv.silences at club-internet.fr
Sun Apr 13 04:44:54 EDT 2008
Hi list,
In html, anchors are used to lead endusers to specific sections
of webpages. Anchors are included in tags and added to the
link in the form :
http://www.myDomain.com/myPage.html#anchor-name
But what if the html content is generated by a cgi script ?
The only way I can see to lead users to a specific section of
the page, is to define each section inside a <div> with an ID :
<div id="section_1">
and then scroll to that section when the page opens, with a
short script on the <body> tag :
<body
onload="window.scrollTo(0,document.getElementById('section_1').clientTop)">
Or am I missing something ?
Thanks,
JB
More information about the use-livecode
mailing list