a href link is missing hover effect

in Script development
Subscribe to a href link is missing hover effect 8 posts, 3 voices



kitokid User
ChromeWindows

I added a new link to a page. but it is a link, even though I hover mouse on it, the mouse pointer doesn't change to Hand Shape. So user won't know it is clickable. One Thing: I don't want to underline the link.

 
kitokid User
ChromeWindows

my code:

var elmNewContent = document.createElement('a');
elmNewContent.addEventListener("click", blahblah, false);

 
mike cupcake Scriptwright
FirefoxMacintosh

Set the elmNewContent.style.cursor property:

http://www.w3schools.com/jsref/prop_style_curso...

 
Jefferson Scher Scriptwright
FirefoxWindows

Is the link really completely empty? You might need some text to get it to behave like a link.

 
kitokid User
ChromeWindows

@Jefferson, no I have a text for that link. It is not empty. I just couldn't see the Hand shape when hovering over the text.

 
kitokid User
ChromeWindows

@mike, thanks for the tip. It works now :) but one question. as I am new , where should I learn how to create those html elements and setting the properties , etc in one place? pls share me the references that I can pick up those skills. Thanks advance.

 
mike cupcake Scriptwright
FirefoxMacintosh

Great, well that site I linked is a really good reference. Otherwise you can check out the Greasespot Wiki + look at scripts that do similar things to what you're attempting and the code of websites that use elements you want to learn about.

 
kitokid User
ChromeWindows

Thanks again Mike. I will check then link that you provided :)