/    Sign up×
Community /Pin to ProfileBookmark

Hi, is there any way to change the appearence of the titlebar of a html document (or disable it)?

Thanks for any help.

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisMay 09.2003 — The only "appearence" of the titlebar you can change is the title of the document.

You can only affect "chrome" features on a window using the window.open() function. I don't know what you mean by "disable it". You can only prevent it from displaying using a signed script from some place like VeriSign, and then only with the user's permission. It is very expensive to get a security certificate.

IE has a fullscreen mode that has no title bar, but it is not cross-browser, and you still have to use window.open() to get it. See http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp for more information.
Copy linkTweet thisAlerts:
@cajo_vcambraauthorMay 09.2003 — I meant remove and not disable. The question is that i need to replace the behaviour of the right click of the mouse button, i want to open a menu with some options. I've tried many things, and it seems that the easiest way is to open a popup window, but i need to change the look of that window so that i can make it similar to the gray menus of Windows.
Copy linkTweet thisAlerts:
@pyroMay 09.2003 — What browsers does it need to work in? When I was doing it, I only needed it to work in IE5.5+ so I used http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/createpopup.asp
Copy linkTweet thisAlerts:
@cajo_vcambraauthorMay 09.2003 — I just need it to work on MSIE, but the titlebar property doesn't work and i don't know what can be wrong.
Copy linkTweet thisAlerts:
@pyroMay 09.2003 — Did you try the link I posted? If so, and it still does not work, post your code.
Copy linkTweet thisAlerts:
@cajo_vcambraauthorMay 09.2003 — Yes, it worked perfectly. I have one final question:

How do i check the cursor position using jscript? I don't have any experience with jscript, I tried looking in search engines but i didn't find anything usefull.

(Thanks to Pyro for the replies ?)
Copy linkTweet thisAlerts:
@pyroMay 09.2003 — Try this:

document.onclick = alertpos;

function alertpos() {
alert ("X="+event.x+" Y="+event.y);
}


or this for rightclick:

document.oncontextmenu = alertpos;

function alertpos() {
alert ("X="+event.x+" Y="+event.y);
}
×

Success!

Help @cajo_vcambra spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...