Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Changing title bar of  modal/modless dialog boxes in html

Posted on 2003-03-06
6
Medium Priority
?
389 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
  • 2
3 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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
How do you create a user-centered user experience on your website? And what are some things you should consider in the process?
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

571 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