Forum: JavaScript / DHTML / AJAX Sep 28th, 2007 |
| Replies: 9 Views: 2,299 i found a problem. if the user uses www in front of the url it doesn't work. you need to add these to the javascript code.
<script type="text/javascript">
var href = window.location.href;
if... |
Forum: JavaScript / DHTML / AJAX Sep 28th, 2007 |
| Replies: 9 Views: 2,299 i tried it on six different browsers and they all worked. firefox worked just fine when i typed in your url. what exactly is the problem? it maybe the version, thats the only thing i can think of. |
Forum: JavaScript / DHTML / AJAX Sep 28th, 2007 |
| Replies: 9 Views: 2,299 try this:
<script type="text/javascript">
var href = window.location.href;
if (href == 'http://yoursite.com/') {
window.location='site_1/index.html';
}
else {... |
Forum: JavaScript / DHTML / AJAX Sep 27th, 2007 |
| Replies: 9 Views: 2,299 stuff concerning domains and what folder they are directed to has to deal with server configuration. there is no need to make a script to do this for you. |