Jump to content

find out what font somethings is


optikalefx

Recommended Posts

so we go ahead and do document.addEventListener('click',myfunc,true);

and then we do

 

function myfunc(e) {

and we can do alert(e.target.property)

}

 

 

so what i need to be able to do, is find out what font the text you click on is.  and element.style.fontFamily wont work if there is no fontFamily present.  So that means its in default font. which is what? javascripts gotta have something up its sleve

 

 

(btw, same problem for font size, how do i know what size something is)

Link to comment
https://forums.phpfreaks.com/topic/96249-find-out-what-font-somethings-is/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.