Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NULL link

Status
Not open for further replies.

gameon

Programmer
Feb 23, 2001
325
GB
Hi, I have a cell (with a onClick href) and a link in that cell. At the moment if you click the cell two calls are made to the page. Is there a way to make the link do nothing at all. (so the cell onClick) does the link, but the text link still behaves as such...

M@
 
can u be a bit more clear? this onclick function is it for the cell or the href?

Known is handfull, Unknown is worldfull
 
Sorry for the misunderstanding.

I would like an html href that does nothing, but does not reload the page....

M@
 
eg <a href=&quot;&quot;>

But this reloads the page - I would like it to do nothing at all...
M@
 
Have tried:
<a href=&quot;javascript:null(0)&quot; onClick=&quot;open_win()&quot;>

and

<a href=&quot;javascript:void(0)&quot; onClick=&quot;open_win()&quot;>

With no sucess... :(

 
try <a href=&quot;#&quot; onclick=&quot;whatever&quot;

hope that's what you're after
 
cheers mate that's what i was after...
m/@
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top