Hi, I’m trying to write a little function that will accept an arguement as follows:
function FloorPlan(plan)
{
FloorPlanWindow= window.open(“”,”FWin1″,”width=550,height=550,left=100,top=0″);
FloorPlanWindow.document.write(“<HTML><HEAD></HEAD><BODY BGCOLOR=’e0d9aa’><center><IMG SRC=’plan’></center><br><center><a href=’javascript:window.close()”>Close Window</a></center></BODY></HTML>”);
FloorPlanWindow.focus();
}
I’m calling this function from this link:
<a href=”javascript:FloorPlan(‘images/A1_1br-1ba.jpg’)”>C1</a>
What am i doing wrong coz the passed arguement does not work.How do i use “plan” (passed arguement) in the code to write html to the window.
Please someone help!
Thanks