window.open problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunith
    New Member
    • Feb 2007
    • 3

    window.open problem

    I have used window.open to open some number of urls.
    the problem is that after the window is opened, there would be some javascript error or some other problems for the opened url(site). If i open the url normally from a internet explorer, it works. i dont know if its a session problem or something like that..

    Pls help me
  • dorinbogdan
    Recognized Expert Contributor
    • Feb 2007
    • 839

    #2
    Could you provide an url with problems?
    Eventually try to test it from this simple page (replace www.yahoo.com):
    [HTML]<html>
    <head>
    <script language="JavaS cript">
    function newWindow(){
    window.open("ht tp://www.yahoo.com") ;
    }
    </script>
    </head>
    <body>
    <input type="button" value="New window" onclick="newWin dow()">
    </body>
    </html>[/HTML]

    Comment

    • sunith
      New Member
      • Feb 2007
      • 3

      #3
      actually with yahoo.com it will work. the urls are some local websites which are available here on lan.

      i cannot blame the websites as they are working if run separately

      Comment

      • dorinbogdan
        Recognized Expert Contributor
        • Feb 2007
        • 839

        #4
        It's hard to guess the problem with current information.
        If provide any statement that generates errors, with error description it may help us.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by sunith
          I have used window.open to open some number of urls.
          the problem is that after the window is opened, there would be some javascript error or some other problems for the opened url(site). If i open the url normally from a internet explorer, it works. i dont know if its a session problem or something like that..

          Pls help me
          What javascript error are you getting? Which browser are you using? Perhaps you could give an example of a page that displays this error?

          Comment

          Working...