想做一個button,點擊後打開一個指定網址的網頁應該怎麼做?

解决方案 »

  1.   

    <input type=button name="open" value="open" onclick="window.open("www.sina.com.cn",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); ">
      

  2.   

    我希望是在應用程序中打開網頁,在web程序中我也知道怎麼做。
      

  3.   

    try
    {
          Process process = Runtime.getRuntime().exec("IEXPLORE.EXE www.sina.com");
    }
    catch( java.io.IOException e )
            {
                System.out.println("ERROR: "+e.getMessage());
            }