...

View Full Version : opening url in same window



matt87
08-10-2007, 11:47 AM
Hi Guys,


I have currently got this bit of code in my program.

function xopen(url)
{
window.open(url,"internal")
}

which opens a new window and displays a website. I need to alter it so instead of opening a new window, it opens the url on the same window, as the new window is repeatedly blocked by popup blocker.

Any help would be greatly appreciated!

Thanks
Matt

Spudhead
08-10-2007, 05:05 PM
Appreciation duly appreciated, but you're still gonna get more help with this in the client-side Javascript forum than here in the server-side ASP forum :)

But for what it's worth, I think you should just be able to replace:
window.open(url,"internal")
with:
window.location.href = url;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum