Показать сообщение отдельно
  #1 (permalink)  
Старый 12.10.2017, 22:24
Новичок на форуме
Отправить личное сообщение для delfa Посмотреть профиль Найти все сообщения от delfa
 
Регистрация: 01.10.2017
Сообщений: 3

html таблица не работает
Данный код не работает.Прошу объясните почему
var n='<table><tr><td>location:</td>'+'<td>'+location+'</td></tr>'+
'<tr><td>location.hash</td>'+'<td>'+location.hash+'</td></tr>'+
'<tr><td>location.host:</td>'+'<td>'+location.host+'</td></tr>'+
'<tr><td>location.href="":</td>'+'<td>'+location.href=""+'</td></tr>'+
'<tr><td>location.port:</td>'+'<td>'+location.port+'</td></tr>'+
'<tr><td>location.protocol:</td>'+'<td>'+location.protocol+'</td></tr>+
'<tr><td>location.search(?q=ABC):</td>'+'<td>'+location.search(?q=ABC)+'</td></tr>'+
'<tr><td>location.reload():</td>'+'<td>'+location.reload()+ '</td></tr>'
'<tr><td>location.assign(path):</td>'+'<td>'+location.assign(path)+'</td></tr>'+
'<tr><td>navigator:</td>'+'<td>'+navigator+'</td></tr>+
'<tr><td>navigator.appCodeName:</td>'+'<td>'+navigator.appCodeName+'</td><tr>'+
'<tr><td>navigator.cookieEnabled:</td>'+'<td>'+navigator.cookieEnabled+'</td></tr>'+
'<tr><td>navigator.javaEnabled():</td>'+'<td>'+navigator.javaEnabled()+'</td></tr>'+
'<tr><td>navigator.onLine:</td>'+'<td>'+navigator.onLine+</td><tr>'+
'<tr><td>navigator.userAgent:</td>'+'<td>'+navigator.userAgent+'</td></tr>'+
'<tr><td>screen:</td>'+'<td>'+screen+'</td></tr>'+
'<tr><td>screen.availHeight:</td>'+'<td>'+screen.availHeight+'</td></tr>'+
'<tr><td>screen.availWidth:</td>'+'<td>'+screen.availWidth+'</td></tr>'+
'<tr><td>screen.colorDepth:</td>'+'<td>'+screen.colorDepth+'</td<tr>'+
'<tr><td>screen.height:</td>'+'<td>'+screen.height+'</td></tr>'+
'<tr><td>screen.width:</td>'+'<td>'+screen.width+'</td></tr>'+
'<tr><td>screen.orientation:</td>'+'<td>'+screen.orientation+'</td></tr>'+
'<tr><td>history.go(n):</td>'+'<td>'+history.go(n)+'</td></tr>'+
'<tr><td>history.forward():</td>'+'<td>'+history.forward()+'</td><tr>'+
'<tr><td>history.length:</td>'+'<td>'+history.length+'</td></tr>'+
'<tr><td>screenX:</td>'+'<td>'+screenX+'</td></tr>'+
'<tr><td>screenLeft:</td>'+'<td>'+screenLeft+'</td></tr>'+
'<tr><td>screenY:</td>'+'<td>'+screenY+'</td></tr>'+
'<tr><td>scrollX: </td>'+'<td>'+scrollX+'</td></tr>'+
'<tr><td>scrollY: </td>'+'<td>'+scrollY+"</td></tr>"+
'<tr><td>screenLeft:</td>'+'<td>'+screenLeft+'</td></tr>'+
'<tr><td>screenTop:</td>'+'<td>'+screenTop+'</td></tr>'+
'<tr><td>innerWidth:</td>'+'<td>'+innerWidth+'</td></tr>'+
'<tr><td>innerHeight:</td>'+'<td>'+innerHeight+'</td></tr>'+'</table>';
document.write(n);
Ответить с цитированием