macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

How to pass url varible in JS?

Subject: How to pass url varible in JS?
From: "Adomacro"
Date: Mon, 13 Aug 2007 15:40:10 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

I want to replace this link with a javascript window.open
 <a href="edit_frm.cfm?id=#id#" target="_blank">



 How can i pass url varible in JS?.
 <script Language="JavaScript">
 var openWin = null;    
 function winOpen(){
 openWin = 
window.open('add_frm.cfm?id=<cfoutput>#id#</cfoutput>','addWin','width=400,heigh
t=300,scrollbars=yes,menubar=no,status=no,location=no');
 }
 </script>
 -----------
 code to call JS
 <a href="javascript:winOpen()" target="_blank">


<Prev in Thread] Current Thread [Next in Thread>