website page losing title
i am going mad with this problem now - if u goto http://talll.com and 开发者_StackOverflowstart clicking around on the menu items like news, economics etc., u will find that the page title says "undefined" - i just want to set the page title to some value thats all - HELPPPPPP!!!
Line 124 in script.js
:
document.title = $("input[type='hidden'][name='title']").attr("value");
Apparently $("input[type='hidden'][name='title']").attr("value")
is undefined
.
The problem is on line 159:
$("a.ctip").cluetip({
document.title='Talll.com - Daily Links for Finance Professionals';
You are passing attributes to that function, you cant just throw the document.title="blah"
in there. You need to add the document.title
to an event handler function called when the user clicks on the link.
精彩评论