CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Window.open()

  1. #1
    Guest

    Window.open()

    Hello,

    How to open a new window using window.open() in the onclick event of a hyperlink. When i am using, it is changing the parent window's page and opening a new window. How to open a new window without changing the parent window's page. I have written as,

    <a href"" onclick=window.open("cc.htm","location=no,menubar=no,toolbar=no")

    bye,
    anand


  2. #2
    Join Date
    Apr 2000
    Location
    Canada
    Posts
    27

    Re: Window.open()

    Umm... I always thought this was a Java forum, but that's not Java, but anyways I think I can help.

    Try adding a "return true;" statement to the tag, which would make the tag look like this:

    <a href="" onclick="window.open("cc.htm", "location=no, menubar=no, toolbar=no"); return true;">


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured