Link to another url

E

et

On my main page, I have a hyperlink that opens a new window in the search
window (target=_search). I would like that search window to have a
hyperlink to return back to the original window, how can I do that?

Thanks for your help, I hope the above makes sense.
 
T

Terry Burns

This is the reference to the window which opened it using javascript.

window.opener.location.href
 
E

et

I'm not familiar with javascript, can you tell me how I can use it to put it
into a variable? Do I put it in the code-behind?

Thanks for your help & patience.
 
T

Terry Burns

If you have opened up a popup window and want to return a value to the
calling page delcare a function in the caller

function updateMyPage( updateValue )
{
document.getElementByID('SomeTextBox').value=updateValue;

}

In the called window

window.opener.updateMyPage( 'yourNewValue');
window.close;
 
E

et

I'm sorry, but I'm still confused. Where do I put this. In the code
behind? The code behind doesn't recognize window.opener.Updatemypage, etc.
 
T

Terry Burns

This is javascript code. And has to end up in the client. If you dont know
what Im talking about you need to read up on javascript first.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,222
Latest member
patricajohnson51

Latest Threads

Top