javascript location.href....(also easy when you know how)

ok.. I might be in a frame, might not, so when users click on the button as shown below it  brings up the index in the current frame how can I target "_top"  ?

And yes I do need to use the button!

<button onclick="location.href='index.asp'">Back to the Menu</button>
LVL 4
rupertsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
binkzzConnect With a Mentor Commented:
Try:

<button onclick="top.location.href='index.asp'">Back to the Menu</button>

That should do it I think
0
 
rupertsAuthor Commented:
Now why didn't I think of that!
0
All Courses

From novice to tech pro — start learning today.