【網頁設計】Javascript - windows.location的特性與應用 - Rafael Lab

Breaking

BANNER 728X90

2018年4月3日 星期二

【網頁設計】Javascript - windows.location的特性與應用



 
window.location =

{ 

hash: '#myAnchor',

host: 'www.myhost.org', 

hostname: 'www.myhost.org',

href: 'https://www.myhost.org:80/check.php?q=rafael+taichung#myAnchor', 

pathname: '/check.php',

port: '80',

protocol: 'http:',

search: 'q=rafael+taichung',

replace: 'function replace() { [native code] }',

assign: 'function assign() { [native code] }',

reload: 'function reload() { [native code] }'

}

沒有留言:

張貼留言