?
Solved

Changing title bar of  modal/modless dialog boxes in html

Posted on 2003-03-06
6
Medium Priority
?
384 Views
Last Modified: 2007-12-19
I am usuing modal dialog box for my application and i am using it like

window.showModalDialog()

i have remove the status bar but i want to change its title, default title is " Web page dialog" .Instead of this i want my application name, can you tell me please how it can be done.I have already tried my best to do this.
0
Comment
Question by:haroon8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
gator4life earned 200 total points
ID: 8080389
If 'myModal.html' is the page that you are loading into with window.showModalDialog(), just put the normal <title></title> tag within the <head></head> tag of 'myModal.html':

myModal.html
------------------------------------------

<html>

<head>
     <title>My Modal Dialog</title>
</head>

<body>
     <!-- MODAL DIALOG CODE -->
</body>

</html>

This allows you to put in your application name, but you will not be able to remove the "-- Web Page Dialog" from the title, just like you can't remove the "- Microsoft Internet Explorer" from main pages.

gator4life
(chomp, chomp)
0
 

Author Comment

by:haroon8
ID: 8085947
Ok thanx , infact to modify the title i was looking for the parameters of modalDialog.But it would work atleast i can have the title of application, with dafault title "Web Page Dialog"


Thanx for your cooperation
0
 
LVL 5

Expert Comment

by:gator4life
ID: 10426984
Hey...wait a minute.  I posted a correct response to this Q, so I think I deserve the points.  I was even thanked by the Q poster for my help.  So, what gives with refunding the points?

gator4life
(chomp, chomp)
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question