Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

href property

Sets or retrieves the entire URL as a string.

Syntax

JavaScript

p = object.href

 

Property values

Type: String

a URL.

Standards information

Examples

This example shows a URL list. The user is taken to the URL selected from the options, if the selection is different from the list's default value.


<select onchange="javascript:window.location.href = this.options[this.selectedIndex].value;">
  <option value="http://www.microsoft.com/ie">Internet Explorer</option>
  <option value="http://www.microsoft.com">Microsoft Home</option>
  <option value="http://msdn.microsoft.com">Developer Network</option>
</select>

See also

location
navigate

 

 

Anzeigen:
© 2016 Microsoft