PDA

View Full Version : page title kind of disappears. why ???


c q
10-04-2002, 06:10 PM
hii !
I am now wondering why the title of my document gets replaced by its URL when I say something like this....
<a href="#" onclick="somescript()">click here</a>
any remedy for this ?

TheTree
10-04-2002, 06:58 PM
I haven't used this code, before----but, I would THINK it should read:

onclick="somescript()">
<a href="#">click here</a>

c q
10-04-2002, 07:31 PM
u mean I shud use a <div> tag ????
I really dont want to do that.

Roy Sinclair
10-04-2002, 10:15 PM
The problem is that you should do it this way:


<a href="#" onclick="somescript();return false;">click here</a>


or like this:


<a href="javascript:somescript()">click here</a>


(Remove the extra space between "java" and "script" that this board unhelpfully includes).

c q
10-05-2002, 01:45 PM
heyy....that looks like a neat solution. Will do that right away....thanks Roy !!!