Target=_top - Use Target=_top (Posted by HAI TRAN)

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

You can't put it in the tag itself, since it is leading to a function (JavaScript?) of some sort. If it is a JavaScript function, you'll need to look at the function to see where it changes the location of the browser with one of several things, some are:
window.location="url"
location.href="url"
There are others I don't recall at the moment.

After finding that, I think what you need to do is change this to:
parent.location="url"
or
parent.window.location="url"

Someone correct me if I made a mistake here, I'm not sure I remembered it right. Smiling

They have: 4 posts

Joined: Sep 1999

It works!

<input type="button" value="NewForm"
onClick="changeFormAction(parent.window.location='NewForm.htm')">

Thanks.

They have: 4 posts

Joined: Sep 1999

I have three frames page. And I have a link so that the user can click to open new full page. But I don't know how to apply target=_top option for the following:

<input type="button" value="NewForm" onClick="changeFormAction('NewForm.htm')">

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.