Lanc1988 Posted March 31, 2005 Posted March 31, 2005 I have a microsoft axwebbrowser on my form and im trying to have it go to: http://hiscore.runescape.com/aff/runescape/hiscores.html but there is a script on that site that redirects it to http://www.runescape.com, so is there anyway to prevent this that is kinda simple to do? Quote
michael_hk Posted March 31, 2005 Posted March 31, 2005 The page uses the following javascript for redirect if (self==top) { top.location.href="http://www.runescape.com"; } So one possible solution may be to disable javascript in your browser, but of course this may cause other parts of the page not working. Quote There is no spoon. <<The Matrix>>
HJB417 Posted March 31, 2005 Posted March 31, 2005 it might be easier to 1) download the page to disk using the webclient or httpwebrequest object 2) remove the javascript 3) load the page from disk Quote
Lanc1988 Posted March 31, 2005 Author Posted March 31, 2005 i was able to make an html page and use the <iframe> tag to show that link and it doesn't redirect.. is that what you meant? Quote
michael_hk Posted March 31, 2005 Posted March 31, 2005 i was able to make an html page and use the <iframe> tag to show that link and it doesn't redirect.. is that what you meant? If you use iframe if (self==top) will return false so there will be no redirect. Quote There is no spoon. <<The Matrix>>
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.