JavaScript Reference/Javascript Properties/length history

Материал из Web эксперт
Версия от 11:21, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"length" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(window.history.length);">History Length</button> </body> </html>


     </source>
   
  


"length" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |history | +----------------+--------------------------------------------------------------+

     </source>
   
  


"length" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Returns the number of stored URLs in the history object.

Syntax:

history.length


     </source>