Click here to Skip to main content
Sign Up to vote bad
good
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="window.open('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:58
Edited 12 Nov '12 - 1:25
MT_8.2K

Comments
Member 9562996 - 12 Nov '12 - 5:59
which code?
lukeer - 12 Nov '12 - 6:10
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:59
i use this cose but not working <span önclick="window.open('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:08
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:05
this s my code onclick="window.open('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

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()
{
    document.getElementById(&quot;smt&quot;).style.display='none';
    if (!newwindow.closed && newwindow.location)
    { newwindow.location.href = url; }
    else
    {
        newwindow=window.open(url,'','toolbar=no,location=no,menubar=no,scrollbars=yes');
        if (!newwindow.opener) newwindow.opener = self;
    }
    if (window.focus)
    {
        newwindow.focus()
        newwindow.moveTo(0,0)
        newwindow.resizeTo(screen.availWidth, screen.availHeight)
        window.opener=""
        window.close(0);
    }
    return false;
}
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 218
1 Sergey Alexandrovich Kryukov 159
2 Santhosh G_ 155
3 Richard MacCutchan 145
4 Maciej Los 136
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,937
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,135


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid