How do I launch the URL with "target="_blank" in the onclick event ? 
Author Message
 How do I launch the URL with "target="_blank" in the onclick event ?
I have an input type of button like so:

<input type="button" name="ContentType" value="Maintain content types and
sub-types"
onclick="javascript:location.href='/sitebuilder/wfe/side_navigation_list.cfm
?sid=1234'">

and I want to use a button not a link like so:

<a href="/sitebuilder/wfe/sb_content_type_list.cfm?sid=1234"
target="_blank">Maintain content types and sub-types</a>

but how do I launch the URL with "target="_blank" in the onclick event ?

--
Thanks,
David Satz
Principal Software Engineer
Hyperion Solutions
->Using SQL Server 7.0 SP2/6.5 SP5a/Cold Fusion 4.5.1/ADO 2.1/VB 6.0/MTS
(Please reply to group)
-----------------------------------------------------------------



Sun, 18 May 2003 03:00:00 GMT  
 How do I launch the URL with "target="_blank" in the onclick event ?

got it:
onclick="window.open('/sitebuilder/wfe/sb_content_type_list.cfm?sid=1234','_
blank')"


Quote:
> I have an input type of button like so:

> <input type="button" name="ContentType" value="Maintain content types and
> sub-types"

onclick="javascript:location.href='/sitebuilder/wfe/side_navigation_list.cfm
Quote:
> ?sid=1234'">

> and I want to use a button not a link like so:

> <a href="/sitebuilder/wfe/sb_content_type_list.cfm?sid=1234"
> target="_blank">Maintain content types and sub-types</a>

> but how do I launch the URL with "target="_blank" in the onclick event ?

> --
> Thanks,
> David Satz
> Principal Software Engineer
> Hyperion Solutions
> ->Using SQL Server 7.0 SP2/6.5 SP5a/Cold Fusion 4.5.1/ADO 2.1/VB 6.0/MTS
> (Please reply to group)
> -----------------------------------------------------------------



Sun, 18 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Invoke "Save Target As.." with script

2. target="_top"

3. problem using "pbmtolps"--blank lines

4. Replace Blank Space With "+"

5. Blank "Alert" box

6. Disabling "BACK"/"FORWARD" buttons

7. CreateObject("Excel","//server"), MsgBox output

8. Problem With "window.showmodaldialog("")"

9. Disabling "BACK"/"FORWARD" buttons

10. onClick="return false;"

11. onClick="parent.window.print()"

12. "Onclick" doubt (pls help)

 

 
Powered by phpBB® Forum Software