Jump to content
xisto Community
biesbos

2 Titles In One Windows

Recommended Posts

hi,list what I saw yesterday, a html page with a title when it was loading and when it was done you saw its real title. I started to figure out how they did it. and with succes. here is the codejust give your document it's title and than place this to your vodycodes<body onload = "document.title = 'Title 2'">easy if you see it. but it was a though one :) greetz Biesbos

Share this post


Link to post
Share on other sites

Can I ask, what use is this?biesbos, instead of making loads of small hot tips, why not collect your resources and post one major thread?

Share this post


Link to post
Share on other sites

When the page has loaded, the onLoad function is called. This executes the javascript "document.title = 'Title 2'", which changes the document's title to 'Title 2'.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.