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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Window.open(...) what's wrong

Window.open(...) what's wrong

Scheduled Pinned Locked Moved ASP.NET
helpquestion
6 Posts 3 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.
  • A Offline
    A Offline
    alwinSCH
    wrote on last edited by
    #1

    Already a new problem, I don't know the syntax of window.open The window that i open comes always behind the current window instead of before, is there anything i should change on the code below? Response.Write("window.open('postcode.aspx','postcode',1,1)") Thanks for the help

    M 1 Reply Last reply
    0
    • A alwinSCH

      Already a new problem, I don't know the syntax of window.open The window that i open comes always behind the current window instead of before, is there anything i should change on the code below? Response.Write("window.open('postcode.aspx','postcode',1,1)") Thanks for the help

      M Offline
      M Offline
      MoustafaS
      wrote on last edited by
      #2

      See This[^]about the syntax.

      A 1 Reply Last reply
      0
      • M MoustafaS

        See This[^]about the syntax.

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

        I use this in my code behindpage btn_onclick(...)... Response.Write ("window.open('postcode.aspx','postcode',_self,1)/script>") The project builds but when viewing the page there is an error saying _self is not declared </x-turndown>

        A A 2 Replies Last reply
        0
        • A alwinSCH

          I use this in my code behindpage btn_onclick(...)... Response.Write ("window.open('postcode.aspx','postcode',_self,1)/script>") The project builds but when viewing the page there is an error saying _self is not declared </x-turndown>

          A Offline
          A Offline
          alwinSCH
          wrote on last edited by
          #4

          I use this in my code behindpage btn_onclick(...)... Response.Write ("window.open('postcode.aspx','postcode',_self,1)/script>") The project builds but when viewing the page there is an error saying _self is not declared </x-turndown>

          1 Reply Last reply
          0
          • A alwinSCH

            I use this in my code behindpage btn_onclick(...)... Response.Write ("window.open('postcode.aspx','postcode',_self,1)/script>") The project builds but when viewing the page there is an error saying _self is not declared </x-turndown>

            A Offline
            A Offline
            Alsvha
            wrote on last edited by
            #5

            I don't know if it is an error posting here, but your closing script tag isn't closed: instead of /script> --------------------------- 127.0.0.1 - Sweet 127.0.0.1

            A 1 Reply Last reply
            0
            • A Alsvha

              I don't know if it is an error posting here, but your closing script tag isn't closed: instead of /script> --------------------------- 127.0.0.1 - Sweet 127.0.0.1

              A Offline
              A Offline
              alwinSCH
              wrote on last edited by
              #6

              Thanks, I should have copy paste my code insteed of typing, because my script tag is closed. Response.Write ("window.open('postcode.aspx','postcode',_self,1)")

              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