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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor issue 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
Ok, I'm embarrassed to post this code, cause maybe I'm doing something really ugly... but anyway...

Code:
echo '<div name=&quot;back&quot; onClick=&quot;history.go(-1)&quot;><u>Back</u></div>';

Now, my cursor doesn't change when I hover over back... I want it it to, just like it would for a hyper link, but I want to use the javascript. There a way I can get that? A better way than I have is fine, using a hyperlink with an onclick is fine, but my method of doing that turned out to not be so nice.... though I remember seeing a very good implentation of that somewhere.

Anyway, thanks for any words of anything
Rob
 
add

href=&quot;javascript:;&quot; to your &quot;a&quot; tag

or href=&quot;your link&quot; and add &quot;;return false&quot; after (-1)

or maybe add style=&quot;cursor:hand&quot; to your &quot;a&quot; tag

shoot one of these mst work

[Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Adding the style=&quot;cursor:hand&quot; to my div tag worked wonders, thanks much.

-Rob
 
np: might not be php but ill get a handle on that stuff too :]

[Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top