change the current url location

M

Mr. x

Hello,
How can I change the current location of the url.

For the case, I want to open an aspx page, but dont open it in a new window.

window.open(" my_url.aspx?my_param=1") open correctly my page, but this is
on a new window.
location = "my_url.aspx?my_param=1" doesn't work (doens't get into the
page).

Thanks :)
 
O

Owen Jacobson

Mr. x said:
Hello,
How can I change the current location of the url.

For the case, I want to open an aspx page, but dont open it in a new
window.

window.open(" my_url.aspx?my_param=1") open correctly my page, but
this is on a new window.
location = "my_url.aspx?my_param=1" doesn't work (doens't get into the
page).

Thanks :)

This isn't directly in reply to your request, but looking at the theme
of your last few threads I have to ask -- is this a public webpage or a
html-driven intranet application? If it's the former you have asked
for advice doing a lot of very silly things; if it's the latter you may
want to specify that in the future.

Try document.location="my_url.aspx?my_param=1", or even better <a
href="my_url.aspx?my_param=1"> and skip the script nonsense.
 
M

Mr. x

I have solved the problem :
windows.open(" ... my_location_url ", _parent);

BTW My page was in frameset,
and window.location = ... didn't work.

Thanks anyway :)
 

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,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top