Switch to full style
JavaScript code examples
Post a reply

get current page link

Sun Sep 18, 2011 12:37 am

Code:
<html>
<
title>Current page location</title>
<
body>
 <script>
 // get current page link
 document.write( location.href.split('/').pop() );
 </script>
</body>
</HTML>




Post a reply
  Related Posts  to : get current page link
 link to parts in the same page     -  
 Number format for current     -  
 current system time     -  
 Printing today+ current date with different format     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 Want start and end date of a month from current date     -  
 add link in asp.net     -  
 Link send     -  
 Different statuses for link by CSS     -  
 inline style for link tag.     -  

Topic Tags

JavaScript Basics