ボタンをクリックしてJavaスクリプトで新しいウィンドウを開くと、新しいウィンドウが開きますが、URLにサーバー名が自動的に追加されます。このエラーを取り除く方法。以下のコード。
HTML コード:
<input class="cssButton button_buy_now" type="submit" name="live_chat" id="live_chat" value="Get Answer"></input>
Java スクリプト コード:
$('#live_chat').click(function() {
return window.open("www.helloexperts.com/index.php?main_page=filerange_chat&ex=1");
}):
しかし、新しいウィンドウが開くと、次のように開始時にlocalhostを自動的に追加します
locahost/www.helloexpert.com
最初にlocalhostを追加する理由を教えてください: