How to change window title from a frame in javascript?

I hosted my web app on a freehoster service which shows my webpage in a frameset. 2 frames are there. In the top narrow frame there are their ad and the bottom frame is mine. I can set the title in the admin panel but it always remains the same regardless what is in my title tag. Setting `document.title` in javascript not works. But if I break out from the frameset using the ff's This frame/show option it will change the window/tab title as expected. So is it possible to change the parent document's title from my frame? (background: it will be an ajax board game and I want to notify the user somehow when it's his turn.)

以上就是How to change window title from a frame in javascript?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准