• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

anchor tag with pound sign

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what's your question?
 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's sloppy notation for 'top of page'.
 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic