|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am including a javascript that makes sure frames are loaded right.
I want to use this code on many different sites so I need it work with out having to edit for each site. Here's the code I have that works fine. <SCRIPT language="JavaScript"> if (top.document.location != 'http://mysite.com/index.html' ){ top.document.location = 'http://mysite.com/index.html' } </SCRIPT> This is how I would like it to work so that the URL will not need to be edited for each site. <SCRIPT language="JavaScript"> if (top.document.location != ( current url ).'index.html' ){ top.document.location = ( current url ).'index.html' } </SCRIPT> Questin is how do I get the current url only? Thanks Charlie... |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > EZ Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|