Change address bar text (HTML)

13 posts Page 2 of 2
Contributors
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Change address bar text (HTML)
Axel
Oh but you mean like
changing it while its displaying , but its not the website url ?
http://vagex.com/?ref=25000
User avatar
kolega28
VIP - Donator
VIP - Donator
Posts: 338
Joined: Mon Jan 17, 2011 7:12 pm

Re: Change address bar text (HTML)
kolega28
u cant change it html can only manipulate the website itself and any included files but it can't manipulate separate controls like vb but u can dynamically change the title and put fun messages on that
Image
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

The only thing I can really think of, off the top of my head is using document.location.href and a hash tag so that the page won't refresh, and you can make your message that way in JavaScript. However you're limited. I'd just advise you not to do it, plus the people that visit the site will get pissed.
Code: Select all
<script type="text/javascript">
document.location.href="#You're An Idiot"
</script>
13 posts Page 2 of 2
Return to “Tutorials”