133
rated 0 times
[
134]
[
1]
/ answers: 1 / hits: 17010
/ 12 Years ago, thu, december 6, 2012, 12:00:00
I am trying to change the href of a link tag so that when a button is pressed a new style sheet is loaded.
function addcss()
{
var findlink = document.getElementsByTagName("link");
findlink.href = "stylesheetxhtml.css";
}
More From » html