Oleszka Posted September 13, 2006 Share Posted September 13, 2006 I have such code: <A NAME="zakl">Here Must Be Text </a><script>anc=location.hash.substr(1)if (anc) document.all[anc].style.color="red"</SCRIPT> so anchored text becomes red but I need it to be bold .. how to do that?Thanx Link to comment Share on other sites More sharing options...
skym Posted September 13, 2006 Share Posted September 13, 2006 document.all[anc].style.fontWeight = 'bold';http://www.w3schools.com/htmldom/dom_obj_style.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now