Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. javascript window

javascript window

Scheduled Pinned Locked Moved ASP.NET
csharpquestionjavascriptasp-net
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    Hi, How can I open a small new window and add a close button to it (probebly javascript) in my asp.net project ? I want to show it when a hyperlink that its url is specefied in my C# code, clicked.

    Best wishes

    P B 2 Replies Last reply
    0
    • M mehrdadc48

      Hi, How can I open a small new window and add a close button to it (probebly javascript) in my asp.net project ? I want to show it when a hyperlink that its url is specefied in my C# code, clicked.

      Best wishes

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      Add a call to javascript:window.open in the href atrribute of your anchor tag.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      M 1 Reply Last reply
      0
      • M mehrdadc48

        Hi, How can I open a small new window and add a close button to it (probebly javascript) in my asp.net project ? I want to show it when a hyperlink that its url is specefied in my C# code, clicked.

        Best wishes

        B Offline
        B Offline
        B A
        wrote on last edited by
        #3

        hi mehrdad see this site. http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

        1 Reply Last reply
        0
        • P pmarfleet

          Add a call to javascript:window.open in the href atrribute of your anchor tag.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          M Offline
          M Offline
          mehrdadc48
          wrote on last edited by
          #4

          hi, I used of this code: [Click Me](javascript:window.open('2.htm','mywindow','width=400,height=200')) and by clicking it a new window opens, but self page navigates to "javascript:window.open('2.htm','mywindow','width=400,height=200')" and displays "object"! How can I stop the first window to navigate? And if I use : ASP.Net throws an exception about validation, what is it?

          Best wishes

          S 1 Reply Last reply
          0
          • M mehrdadc48

            hi, I used of this code: [Click Me](javascript:window.open('2.htm','mywindow','width=400,height=200')) and by clicking it a new window opens, but self page navigates to "javascript:window.open('2.htm','mywindow','width=400,height=200')" and displays "object"! How can I stop the first window to navigate? And if I use : ASP.Net throws an exception about validation, what is it?

            Best wishes

            S Offline
            S Offline
            Sunil Wise
            wrote on last edited by
            #5

            you can use target="_blank" attribute inside anchor tag regards sunil

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups