简体   繁体   English

在 IE11 中将页面标题动态更改为文本框

[英]Dynamically change the page title to a textbox in IE11

How to change the page title dynamically in IE11?如何在 IE11 中动态更改页面标题?

The extension is highlighted.when click the extension it will take the page title and XML path and send it to the server using a ajax call.The page title is shown with the extension icon in a text box.扩展被突出显示。单击扩展时,它将获取页面标题和 XML 路径,并使用 ajax 调用将其发送到服务器。页面标题显示为文本框中的扩展图标。

The thing is if i am changing the title it should dynamically reflect in the server also.but its not working to me , how can i do that?问题是,如果我正在更改标题,它也应该动态反映在服务器中。但它对我不起作用,我该怎么做?

can any one help me to do that?任何人都可以帮助我做到这一点吗?

[ [在此处输入图片说明 ] ]

you can use this on Javascript:您可以在 Javascript 上使用它:

 document.title = "Your new title";

But is no good for SEO但对SEO没有好处

You can use document.title = "title";您可以使用document.title = "title"; for javascript.对于 JavaScript。 Use the ajax request to send the changed title along with the XPath as soon as the changes occure.一旦发生更改,使用 ajax 请求将更改后的标题与 XPath 一起发送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM