Home
Home Page
Krossbrauzernoe alignment on the center (table height=100 %)
Lists a la MS Word
Features of links « upwards pages »
Tables and borders
We get rid from cellpadding and cellspacing
Optimum use MySQL
Competent job with files: exclusive blocking of files
How to learn{find out} the size of a file on any web - server
Regular expressions
Processing of lines in RNR
Creation of system of the account of visitings
Tracking a content on dynamic sites
CSS: advice{councils} and receptions, a part 2
CSS: advice{councils} and receptions, a part 1
Ten rules of a spelling of a safe code on PHP
About tags and metatags
Potential vulnerability of php-scripts
Removal{Distance} of a line from a file
The generator of passwords
Links
 

Features of links « upwards pages »

When the size of page surpasses some limit, developers often put below the text or graphic link « upwards pages ». This link allows to proceed{pass} quickly in the beginning of page, that sometimes it happens very conveniently.


Classically similar link is imposed so:



<a name = "top"> … </a>

It is many - many text

<a href = " * top "> upwards pages </a>


Lack of this method is that it is necessary to place any element at the top of page in an anchor (<a name = "top">) as some browsers do not understand empty anchors. Besides at transition to an anchor in Internet Explorer the name of page in heading of a browser disappears, and button Back not absolutely logically works.


But it is possible to get rid of these problems, having outwitted a browser. For this purpose simply enough to specify the empty link <a href = "*"> upwards pages </a>, not setting any anchors. The browser without superfluous meditations will scroll page upwards. I have specially seen in the specification, that she has to say on this bill, but has not found any instructions{indications} as UA should operate in a situation when the name of an anchor is not specified. It is good, that in this not documentary behaviour absolutely all browsers show unanimity.


At last, it would be desirable to specify one more way of installation of the link « upwards pages ». He is based on JavaScript and does not cause any by-effects:



It is many - many text

<a href = " javascript:scroll (0,0) "> upwards pages </a>


Here the method window.scroll (x, y) which allows to waste page on the specified quantity{amount} piskelov across (x) and verticals (y) has been used. If we shall null these two parameters the status kvo - page proskrolitsja in the beginning will be restored.


At last I shall say, that I usually adhere to last offered{suggested} method which works in overwhelming majority of browsers and thus is not based on any non-standard "features".


P. S. As has correctly prompted Nikolay Merkin, the most compatible decision will be such variant:



<a href = "*" onClick = " scroll (0,0); return false " title = "upward"> upwards pages </a>