Results 1 to 6 of 6

Thread: How to open web application in a new window after login in JS?

  1. #1
    Join Date
    Aug 2009
    Posts
    59

    How to open web application in a new window after login in JS?

    Hello to all,
    I am last year B.Sc.IT student. As a part of my syllabus I am working on live project where I am using java script. I am working on web application. In my project I want to open web application in a new window after login. The size of that window has to be (1280, 800). I don't know how to do it. I never use Javascript in details. Can anyone tell me how to open web application in a new window after login in JS?
    Thanks in advanced.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to open web application in a new window after login in JS?

    You have to use window.open method in your code to open web application in a new window after login. To do this you have to use following syntax:
    Code:
    open (URL, windowName[, windowFeatures])
    URL:The URL of the page to open in the new window.
    windowName : The name of that window.
    windowFeatures: features of that window like status bar, address bar etc.
    You have to use following code to opens a new browser window with standard features.
    Code:
    window.open ("http://wwwtecharena.com","mywindow");

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: How to open web application in a new window after login in JS?

    You have to use submit button in your page to go to next window. When some one click on that button, your new window will automatically open. You also have to process login form before going to new window. To do this you have to first verify that whether it is right information or not. After verifying information you have to open new window.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How to open web application in a new window after login in JS?

    Hey it is very simple to do this. You have to use following simple code to open web application in a new window after login. It is very simple to do this. In the following code I have used window.open method to do this. I also have set width to the 1280 and height to the 800. I also have give name of the window to "My window"
    Code:
    <input type="buttons" value="My window" onclick="window.open('http://www.techarena.com','popup','width=1280,height=800')" />

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How to open web application in a new window after login in JS?

    I have use following code and it is working fine.
    Code:
    <script types="text/javascript">
    function Resize()
    {
       window.opens("home.phps","_blanks","toolbars=no","locations=yes","directoriess=no","statuss=no","menubars=no","scrollbarss=no","resizeables=no","copyhistorys=yes, widths=1280, heighst=800");
    To get proper effect you have to use Internet explorer, because you will get proper window size. In the above code I have set home.phps to the blank.

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to open web application in a new window after login in JS?

    You have to use 3 parameter in your window.open method and these are as follows.
    "toolbars=no,locations=yes" not "toolbars=no","locations=yes"
    You have to use following code to get this result.
    Code:
    windows.open("homes.php","_blanks","toolbars=no,locations=yes,directoriess=no,statuss=no,menubar=no,scrollbars=no,res izeable=no,copyhistorys=yes, widths=1280, heights=800");

Similar Threads

  1. To open a link from Google, I have to open in a new tab or window
    By Bindaas-ER in forum Technology & Internet
    Replies: 3
    Last Post: 07-03-2011, 04:02 AM
  2. Replies: 4
    Last Post: 24-01-2011, 11:05 AM
  3. How to remove administrator account from login window
    By Preetish in forum Customize Desktop
    Replies: 3
    Last Post: 10-07-2009, 11:24 AM
  4. Replies: 2
    Last Post: 20-04-2007, 07:30 PM
  5. Black screen on Acer Travelmate 8005LMi login window
    By Lindberg in forum Vista Hardware Devices
    Replies: 2
    Last Post: 22-03-2007, 04:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,061,763.78175 seconds with 16 queries