Click here to Skip to main content
13,089,504 members (64,004 online)
Rate this:
Please Sign up or sign in to vote.
I need to remove the task bar,menu bar and close button from the child window...i use this code to done it..but not working

<span önclick="'CCAgentLiveChat.aspx?ChatId=<%#DataBinder.Eval(Container.DataItem," chatid=") %>&UserName= <%#DataBinder.Eval(Container.DataItem," name=") %>&UserRole= <%#DataBinder.Eval(Container.DataItem," userrole=") %>','mywindow&lt;%#DataBinder.Eval(Container.DataItem,"></span>

[edit]Code block added, HTML encoded - OriginalGriff[/edit]
Posted 11-Nov-12 23:58pm
Updated 12-Nov-12 1:25am
Member 9562996 12-Nov-12 5:59am
which code?
lukeer 12-Nov-12 6:10am
The code is there, hidden in tags:
<span> ... some code ... </span>
I don't know Javascript. So I can't make out what the code should mean, maybe you can.
Member 9492907 12-Nov-12 5:59am
i use this cose but not working

<span önclick="'CCAgentLiveChat.aspx?ChatId=<%#DataBinder.Eval(Container.DataItem,"ChatId") %>&UserName= <%#DataBinder.Eval(Container.DataItem,"Name") %>&UserRole= <%#DataBinder.Eval(Container.DataItem,"UserRole") %>','mywindow<%#DataBinder.Eval(Container.DataItem,"ChatId") %>',' width=450,height=400,left=300,top=150,menubar=0,toolbar=0,resizable=no')"
lukeer 12-Nov-12 6:08am
Please use the "Improve question" link directly beneath your question to edit its content.
The code you provided there is hidden because it's wrapped in a "span" tag:
<span> ... some code ... </span>
Replace left angle brackets or "smaller-than" characters with sequences of "& lt ;" (without the quotation marks and without spaces.
Member 9492907 12-Nov-12 7:05am
this s my code

onclick="'CCAgentLiveChat.aspx?ChatId=<%#DataBinder.Eval(Container.DataItem,"ChatId") %>&UserName= <%#DataBinder.Eval(Container.DataItem,"Name") %>&UserRole= <%#DataBinder.Eval(Container.DataItem,"UserRole") %>','mywindow<%#DataBinder.Eval(Container.DataItem,"ChatId") %>',' width=450,height=400,left=300,top=150,titlebar=no,toolbar=no,statusbar=no')"

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use this javascript code. Hope it helps you.
var mylocation="page_name"
var winheight=100
var winsize=100
var x=5
var newwindow = '';
var url = "page_name"
function popitup()
    if (!newwindow.closed && newwindow.location)
    { newwindow.location.href = url; }
        if (!newwindow.opener) newwindow.opener = self;
    if (window.focus)
        newwindow.resizeTo(screen.availWidth, screen.availHeight)
    return false;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100