URL of a document : JavaScript DHTML examples (example source code) » HTML » Hyper Link

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   HTML   » [  Hyper Link  ]   
 



URL of a document

Please note that some example is only working under IE or Firefox.

<html>
<head>
<script type="text/javascript">
  function showURL(){
    alert(document.URL)
  }

</script>
</head>

<body>
    <form>
        <input type="button" onclick="showURL()" value="Show URL">
    </form>
</body>

</html>
Related examples in the same category
1.  Inserts a link on a text, a picture, a button or a dynamic picture
2.  Mouse over an hyper link
3.  Get link infomation in a paragraph
4.  Validate Link
5.  Output link
6.  Illustrate how a URL can be referenced
7.  Call function in hyper link
8.  Change Link Colors
9.  Passing Form Value In URL
10.  Using JavaScript linkTo Entities
11.  Prevent the browser from following the link
12.  Redirect user depending on browser
13.  Location: Send the client to a new location (URL/page)
14.  Change URL and text of a hyperlink
15.  Change the target attribute of a link
16.  Link focus() and blur()
17.  View and change the action URL of a form
18.  List the links in a page








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.