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. size of page

size of page

Scheduled Pinned Locked Moved ASP.NET
questionjavascripthtml
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.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i write this code: javascript:window.open('a.html') i want open a.html with small size how can i set the size of my form in my code?

    E S 2 Replies Last reply
    0
    • P ptvce

      i write this code: javascript:window.open('a.html') i want open a.html with small size how can i set the size of my form in my code?

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      use something like this: window.open (this.href, 'popupwindow','width=1000,height=800');return false;"

      P 1 Reply Last reply
      0
      • P ptvce

        i write this code: javascript:window.open('a.html') i want open a.html with small size how can i set the size of my form in my code?

        S Offline
        S Offline
        samMaster
        wrote on last edited by
        #3

        Hi, Test this code: window.open("a.html", "_blank", "innerHeight=200,innerWidth=300"); for more information see this: http://www.webreference.com/js/tutorial1/features.html[^]

        1 Reply Last reply
        0
        • E eyeseetee

          use something like this: window.open (this.href, 'popupwindow','width=1000,height=800');return false;"

          P Offline
          P Offline
          ptvce
          wrote on last edited by
          #4

          thanks for ur help, thats right i write this for: javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes'); and thats right but return an object, do u know where should i write return false? when i write javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');return false; it give an error "return statement outside of function"

          E 1 Reply Last reply
          0
          • P ptvce

            thanks for ur help, thats right i write this for: javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes'); and thats right but return an object, do u know where should i write return false? when i write javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');return false; it give an error "return statement outside of function"

            E Offline
            E Offline
            eyeseetee
            wrote on last edited by
            #5

            That should work, where is the code, is it in the c#?

            P 1 Reply Last reply
            0
            • E eyeseetee

              That should work, where is the code, is it in the c#?

              P Offline
              P Offline
              ptvce
              wrote on last edited by
              #6

              yes its in c#. exactly its this form: cell8.Controls.Add(new LiteralControl("<A HREF=" + "javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');return false;" + " <span style=" + "font-size:9pt;" + "></span>??? ????? ???</A>")); and thast error is :return statement outside of function

              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