英[həʊst] 美[hoʊst]
n.[Computer] host; host, host; program host; hotel owner
vt.Be a host; host a banquet, host a program; entertain, be a host
vi.Be a host, be a host
Third person singular: hosts Plural: hosts Present participle: hosting Past tense: hosted Past participle: hosted
javascript host attribute syntax
Function: Set or return the host name and port number of the current URL.
Syntax: location.host
javascript host attribute example
<html> <head> <meta charset="UTF-8"> </head> <body> <script type="text/javascript"> document.write(location.host); </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance