View Full Version : Opening a new window despite JavaScript


t020
15-08-2005, 22:47
Does anyone know how to open a link in a new window in IE when the link is a JavaScript function programmed to open a URL in the same window? Obviously just clicking "open link in new window" causes IE to try to load the JavaScript function as a URL so it doesn't load the actual URL behind the function.

Lurch
16-08-2005, 09:33
Give me an example of a javascript link, can't see any atm!

sccsux
16-08-2005, 09:36
Originally posted by t020
Does anyone know how to open a link in a new window in IE when the link is a JavaScript function programmed to open a URL in the same window? Obviously just clicking "open link in new window" causes IE to try to load the JavaScript function as a URL so it doesn't load the actual URL behind the function.


View the page source then copy the URL, open a new window & paste the URL into the new browser window??

Nazo
16-08-2005, 09:42
Originally posted by Lurch
Give me an example of a javascript link, can't see any atm!

Hotmail uses javascript links.

There's a Firefox extension to convert Hotmail's ones to regular links, but in general I don't know of an easy way to do it.

Lurch
16-08-2005, 10:06
Don't know how IE does it but in Firefox right click the link, properties and the url is in there. Just copy and paste and then delete the javascript from around the url.

t020
16-08-2005, 12:21
Thanks, but the reason I ask is to make browsing websites like this easier (I'll try to dig out an example, I think it was a property website that provoked this thread) and viewing source code and then copy and pasting into a new window is a long winded way. I was hoping there'd be some way to force it to open the URL within the JS function in a new window?

sccsux
16-08-2005, 12:26
Originally posted by t020
I was hoping there'd be some way to force it to open the URL within the JS function in a new window?


I know what you mean;).

However, AFAIK, this is impossible client side. The properties for JS will be hard coded into the websites mark up:(.