JavaScript Reference/Javascript Properties/URL

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

"URL" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(document.URL);">URL</button> </body> </html>


     </source>
   
  


"URL" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+

     </source>
   
  


"URL" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Returns the document URL.

Syntax:

document.URL


     </source>