Published in: Other
var domain = "http://" + window.location.toString().split("//")[1].split("/")[0] + "/";
Comments
Subscribe to comments
You need to login to post a comment.
Building Websites with TYPO3
Follow a clear path through the power and complexity of TYPO3 to get started, and build your own TYPO3 website This book is a fast paced tutorial to creating a website using TYPO3. If you have never used TYPO3, or even any web content management system before, then you need not look further than this book as it walks you through each step to create your own TYPO3 site.
vanne on 04/18/07
1 person has marked this snippet as a favorite
Published in: Other
var domain = "http://" + window.location.toString().split("//")[1].split("/")[0] + "/";
Subscribe to comments
You need to login to post a comment.
Or:
var domain = 'http://' + window.location.hostname + '/';
That's even better thanks!