• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anchor tag with pound sign

 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what's your question?
 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's sloppy notation for 'top of page'.
 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic