i cant figure out why my javascript function is not working. This isnt working but if i hardcode it in instead of getcss(), it works.
but doing other javascript stuff works like: document.getElementById("example").innerHTML='blahblah';
any ideas? thanks
but doing other javascript stuff works like: document.getElementById("example").innerHTML='blahblah';
any ideas? thanks
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function getcss()
{
var temp = '../css/test.css'
return temp;
}
</script>
<link href="getcss()" rel="stylesheet" type="text/css" />
....
blah blah