如何通过javascript设置此页面标题
<head runat="server">
<link href="../App_Themes/CSS/Catalyst.css" rel="stylesheet" type="text/css" />
<title><asp:Literal ID="ltlTitle" runat="server"></asp:Literal>
</title>
</head>
你可以做类似的事情,
<script type="text/javascript">
document.title = "This is the new page title.";
//or
$(document).attr('title', 'test');
</script>
您可以通过以下代码检查:
document.title="My Title by Vaibhav";
document.write(document.title);
利用
$('title').html("new title");