В связи с переходом на новый движок... возможны сбои в работе! Простите!
Работы производятся прямо сейчас 29-03-2024! 🞨
Меню :
js (244)



Blog (1398)
php (331)
js (244)
html (147)
css (131)
html tags (62)
js tag (56)
jquery (42)
text (37)
js method (36)
js date (33)
php array (33)
form html (30)
online (29)
fonts (26)
Показать еще :
ruweb.net (25)
foto (22)
php file (20)
atom (20)
forum (19)
svg (18)
input (18)
hosting (18)
php date (17)
board (16)
info (16)
html book (16)
php time (16)
color (15)
js time (14)
js events (14)
js url (14)
img (14)
select (13)
notepad (13)
osclass (13)
htaccess (13)
знак (13)
table (12)
keyboard (12)
download (12)
php img (12)
php path (12)
dw block (12)
form (11)
jsphp (11)
icon (11)
mouse (10)
alphabet (10)
yandex (10)
keyframes (10)
js delete (10)
dosite (9)
hover (9)
chart (9)
browser (8)
php post (7)
php url (7)
comment (7)
canvas (6)
php get (6)
vs code (6)
adminka (6)
list (6)
click (6)
iframe (6)
mysql (6)
tag a (5)
heading (5)
value (5)
reg.ru (5)
js id (5)
mb (5)
js math (5)
ftp (5)
year (5)
php var (4)
bbcode (4)
base64 (4)
symbols (4)
day (4)
ssl (4)
week (4)
scandir (4)
js form (4)
flags (4)
console (4)
games (4)
month (4)
pages (4)
task (4)
vk (4)
submit (4)
нок (4)
xml (4)
domen (3)
js hash (3)
money (3)
https (3)
js post (3)
jquery post (3)
ucoz (3)
numbers (3)
куб (3)
captcha (3)
line (3)
js img (3)
padding (3)
qr kod (2)
seo (2)
js vars (2)
prompt (2)
counter (2)
details (2)
video (2)
youtube (2)
sitemap (2)
tag hr (2)
height (2)
рся (2)
google (2)
arrows (2)
typeof (2)
cursor (1)
rutube (1)
нод (1)
archive (1)
scroll (1)
smile (1)
jino (1)
windows (1)
speed (1)

Document.location.protocol

"document.location.protocol" - это один из методов "document.location"

Подробно о "document.location.protocol"

  1. Что такое document.location.protocol
  2. Проверяем возвращаемое значение document.location.protocol

  1. Что такое document.location.protocol

    Дадим определение : "Что такое document.location.protocol":

    document.location.protocol - возвращает текущий http протокол.

    Синтаксис document.location.protocol

    document.location.protocol

    Вывести на экран document.location.protocol

    Для того, чтобы вывести на экран document.location.protocol вам понадобится:

    Тег script.

    В него помещаем document.write();

    И внутри него "document.location.protocol"

    Получим код document.location.protocol

    <script> document.write ( document.location.protocol );</script>

    И вы получите(обращаю ваше внимание!):


  2. Проверяем возвращаемое значение document.location.protocol

    Для метода "document.location.href" я сделал некоторый проверочный стенд, что возвращает этот метод - см. здесь.

    Сделаем аналогичный стенд для "document.location.protocol"

    Давайте добавим в ссылку разного мусора после расширения и посмотрим, как будет реагировать document.location.protocol - нажми по ссылке :

    <a href=https://dwweb.ru/document_location_protocol.html?example=1#result>текст_ссылки</a>

    Вывод о возвращаемом значении "document.location.protocol"

    Предвосхищая ваш переход по ссылке можно сказать, что возвращаемое значение document.location.protocol будет чистым, без мусора.

Не стесняемся говорить спасибо!
Помочь проекту DwWeb.ru

Поделиться ссылкой! C друзьями или врагами!

Этим вы очень поможете проекту! Заранее огромное спасибо!

Теги:
location protocol location protocol https https http location protocol js document location protocol script document location protocol script document location protocol https service location protocol src https document location protocol document location protocol https http window location protocol d location protocol https https location protocol javascript d location protocol https https http s src d location protocol src d location protocol https
Ещё : dwweb.ru есть здесь:
ruweb
Все статьи авторские, при копироавании активная ссылка обязательна DwWeb.ru! © 2015 - 2024 Контакты. Реклама на сайте Лучший хостинг : RUWEB + помощь по RUWEB
Страница загружена за : 0.015378 секунд. Подробнее