Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one more js problem...

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
*************************************

<script language=javascript type=&quot;text/javascript&quot;>

function here1(){

if (this.location.URL == 'go.html') document.write('this works!');

else document.write('it still does not work');

}

</script>




<input type=button value=go onclick=&quot;javascript:here1()&quot;></input>



***************************************


okay, where is the problem? i can't seem to get it to say 'this works!', even when i'm on the right page, when the url matches the page, that is...


so easy, i'm sure, just not using the right whatever.whatever, right?


-crispy
 
I don't know about using this.location. I usually use document.location
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top