Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to change my title but faird. The title aways chang to title after initialized. the solution using jquery mobile script and mvc 3. could you help me resove this like
C#
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title>smaples title </title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="Keywords" content="..">
    <meta name="description" content="..">
    <link rel="Shortcut Icon" href="<%: Url.Content("~/Content/img/ico32X32.ico")%>" />
    <link href="<%: Url.Content("~/Content/jquery.mobile-1.4.2.min.css")%>" rel="stylesheet"
        type="text/css" />
    <script src="<%: Url.Content("~/Scripts/jquery.js")%>" type="text/javascript"></script>
  
    <script src="<%: Url.Content("~/Scripts/jquery.mobile-1.4.2.min.js")%>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/PageDefine.js")%>" type="text/javascript"></script>


I did't do anything about the title content. Who can help me ?
Posted
Updated 22-Apr-15 22:36pm
v2
Comments
Zephire 23-Apr-15 4:49am    
What's the content of your PageDefine.js?
chroia funtadala 23-Apr-15 4:54am    
PageDefine.js only just async show content
F-ES Sitecore 23-Apr-15 5:32am    
The title is always going to change after the page has loaded. The page has to load in order to laod and execute the js that changes the title. Search engines don't execute your js, they only run from the html so you can't amend what they see via js.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900