Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<asp:Button ID="btnID" runat="server" Text="ID" Width="100px" meta:resourcekey="btnIDResourceKey" OnClientClick ="return confirm('message');"
Posted
Comments
Sergey Alexandrovich Kryukov 2-Mar-15 10:20am    
What exactly to you want to achieve?
—SA
Member 11491784 2-Mar-15 10:24am    
Actually, I want to delete the title of the Popup which Appears on event click. Generally in IE it comes like this way: Message from Webpage(so, I want to get rid of this title)
Sergey Alexandrovich Kryukov 2-Mar-15 10:40am    
No, this is not what you are trying to achieve. Why pop-up, what's its purpose? What do you want to show, when, how, etc...
—SA
Member 11491784 6-Mar-15 7:25am    
On the click of a button, I want to show a popup, But it should not come with Title Bar. I made one popup on client click, but it appears with Title Bar(I want to get rid of that title BAr)

The title you are referring to is built-in to the browser. The way to get around it is to not use the confirm() javascript function but to build your own dialog. There are simple jquery dialogs if you google for that. Otherwise, you just have to live with the title.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Mar-15 8:48am    
5ed. And I added a bit of detail in Solution 2.
—SA
In addition to Solution 1:

Use, for example, http://jqueryui.com/dialog[^].

Not only it gives you all the control you need, it also allow you to get rid of pop-ups. Pop-ups are very irritating to most users. First of all, they are ugly by themselves, because their multiply open windows without user's control, but a lot of pop-up use in advertizement made them intolerable. That's why many users will block them, usually using browser's plug-ins developed for this purpose.

If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com[^],
http://learn.jquery.com[^],
http://learn.jquery.com/using-jquery-core[^],
http://learn.jquery.com/about-jquery/how-jquery-works[^] (start from here).

—SA
 
Share this answer
 
v2

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