Page 1 of 2

Change address bar text (HTML)

Posted: Thu Apr 14, 2011 3:35 am
by Cheatmasterbw
In HTML, is there a way to change the text in the address bar to whatever you want?

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 9:31 am
by Axel
You mean like
bkm.PNG

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 10:00 am
by bisnes_niko
Address bar is where you enter site URL, not site title

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 10:08 am
by Axel
Yea but the changing the url trough html is kinda impossible so I suggested that

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 11:17 am
by mandai
You can't change it before the browser has already navigated to that page.

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 9:33 pm
by mikethedj4
The address bar is where you put the URL to the website, if you're talking about the title (the screenshot Axel posted, this is how you do it)

To change the title of your website in HTML you wanna put the title tags in your head tags, and the html tags should start in the beginning of your code, and the ending of your code.

ex.
Code: Select all
<html>
    <head>
	<title>Website Title Here</title>
    </head>
</html>
Here's another example of a basic webpage coded in HTML, and CSS, just look at where/how the html, head, and title tags are positioned.
Code: Select all
<html>
<head>
<title>Example Site</title>
</head>

<style type="text/css">
body {
	background-color:#000;}

#div1 {
	position:absolute;
	top:0px;
	left:50%;
	width:600px;
	height:600px;
	margin-left:-300px;
	background-color:#1c1c1c;
	color:#4a4a4a;
	border:4px ridge #4a4a4a;
	-webkit-box-shadow:#1c1c1c 0px 0px 16px;}
</style>

<body>
<div id="div1">
	<div align="center">
		<big><strong>RULES!</strong></big>
	</div>

	<ol>
		<li>Be Respectful</li>
		<li>Be Responsible</li>
		<li>Be Honest</li>
	</ol>
</div>
</body>
</html>

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 9:34 pm
by Axel
mikethedj4 wrote:
You're talking about the title, not the address bar, the address bar is where you put the url down of the website in which to go to.

To change the title of your website in HTML you wanna put the title tags in your head tags, and the html tags should start in the beginning of your code, and the ending of your code.

ex.
Code: Select all
<html>
    <head>
	<title>Website Title Here</title>
    </head>
</html>
Here's another example of a simple website coded in HTML, and CSS, just look at where/how the html, head, and title tags are positioned.
Code: Select all
<html>
<head>
<title>Example Site</title>
</head>

<style type="text/css">
body {
	background-color:#000;}

#div1 {
	position:absolute;
	top:0px;
	left:50%;
	width:600px;
	height:600px;
	margin-left:-300px;
	background-color:#1c1c1c;
	color:#4a4a4a;
	border:4px ridge #4a4a4a;
	-webkit-box-shadow:#1c1c1c 0px 0px 16px;}
</style>

<body>
<div id="div1">
	<div align="center">
		<big><strong>RULES!</strong></big>
	</div>

	<ol>
		<li>Be Respectful</li>
		<li>Be Responsible</li>
		<li>Be Honest</li>
	</ol>
</div>
</body>
</html>
I said he was talking about the title -.-

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 9:38 pm
by mikethedj4
I realized that after I posted the reply, cause I read the comments after I posted instead of before.

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 9:47 pm
by Axel
Lol np dude

Re: Change address bar text (HTML)

Posted: Thu Apr 14, 2011 10:04 pm
by Cheatmasterbw
I was talking about the URL/address bar. I am just curious, because I think it it would be fun to make messages, etc. in there.