[Javascript] Open in blank / if needed
Gee, David
dgee at freemarkets.com
Wed Jun 9 08:38:47 CDT 2004
Well, assuming the javascript function takes in a URL as a parameter, the correct way of coding it would be:
<a href="url.ext" onclick="myFunc(this.href")>linktext</a>
Which would allow the right-click to open in new tab/window.
If there is no URL reference, as is the case with some bizarre security implementations I've seen, it would be a lot more complicated.
David
-----Original Message-----
From: Hakan Magnusson [mailto:hakan at backbase.com]
Sent: Wednesday, June 09, 2004 11:29 AM
To: [JavaScript List]
Subject: Re: [Javascript] Open in blank / if needed
He wants to be able to right click on any link and select "open in new
window", even if the href of the link is "javascript:functionName()".
I can't think of any direct solution to this problem.
Regards,
H
Flavio Gomes wrote:
> I couldnt understand your question..
>
> Do you want the user to be able to choose if he wants or not the
> links
> to open in a new window
> for instance checking (or unchecking) a "checkbox" ?
> Cold you show what you coded up to now?
>
> ---
> Flavio Gomes
> flavio at economisa.com.br
>
>
>
> Thierry Lavallée wrote:
>
>> Hi,
>> I'd like the visitor to be able to open a link in blank if needed.
>> But every time the link is a JS function, this is not enabled within
>> menu.
>>
>> How can I achieve this?
>> Thanks!
>>
>>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list