views:

34

answers:

2

I need some help with document.location. Basically, I need a button, using document.location, with the URL hide://. Please help! Thanks!

A: 

Could you please elaborate what you want?

Do you want a button to be linked with document.location? I don't understand why you would need that

Sandeep
Yes, thats right. linked with document.location
Henry D'Andrea
+1  A: 
<button value="click me" onclick="document.location='hide://'" />

or am i missing something?

edit : as CMS has mentioned, hide:// is not a valid url. i'm not sure what you want to do, OP, but hopefully that snippet will set you on the right path...

oedo
`hide://` is not a valid URL, since there is no `hide` protocol...
CMS
right, i know that, but OP specifically asked for that url...
oedo
yeah, I'm not sure either what he really wants...
CMS
This is exactly what I wanted! Thanks!
Henry D'Andrea