permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes anchor tag with pound sign Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "anchor tag with pound sign" Watch "anchor tag with pound sign" New topic
Author

anchor tag with pound sign

Drake Almonto
Greenhorn

Joined: Apr 29, 2005
Posts: 16
Can anyone help me with this? I have this html code in a j2ee application. I know that href="#.." indicates a link to a label inside of the same documement. However, I have not seen an anchor tag with href equal to a single pound sign (href="#") as shown in the following code. This is one html page inside of a frameset.

strXML=<?xml version="1.0" encoding="UTF-16"?>
<body>
<table width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="classname" height="29" width ...>
</tr>
<tr>
<td>
<div id="idname">
<div align="center" class="classname">
<span class="classname">...
</div>
<table class="classname">
<tbody>
<tr>
<td nowrap="1">
<a href="javascript"openC('...')">...</a>
</td>
<td nowrap="1" align="right" style="background-color:transparent;">
<a href="#">-></a>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td style="border-top; 1px solid #000000;" align="center">
<a href="javascript arent.close()"><img src="..."></a>
</td>
</tr>
</tbody>
</table>
</body>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

So what's your question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Drake Almonto
Greenhorn

Joined: Apr 29, 2005
Posts: 16
The line <a href="#">-></a>

If someone clicks on the link, where will the page go? I don't understand the href="#" syntax. It was my understanding that it is necessary to have a label specified after the pound sign. (For example: href="#somelabel")
)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

It's sloppy notation for 'top of page'.
Drake Almonto
Greenhorn

Joined: Apr 29, 2005
Posts: 16
Ok. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anchor tag with pound sign
 
Similar Threads
HTML does not print properly - table width exceeding 100%?
ClassCastException in struts - urgent! :(
Setting div's innerhtml behaves differently in IE and Mozilla
Horizontal scrollbar problem
Dynamic table generation in jsp