Jump to content
  • 0

Дополнительное окно


Edem
 Share

Question

Всем добрый день!!! А подскажите пожалуйста, когда я делаю так

текст текущей ссылки

текст ссылки 1, что нужно добавлять, чтобы ссылка открывалась в дополнительном окне? А то target="_blank" не работает

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Я конечно могу ошибаться, но по-моему можно попробовать как-то так:

<head>
<script>
function NewWindow()
{
window.open("/mypage1.html","","Toolbar=0,Location=0,Directories=0,Status=0,Menubar=0,Scrollbars=0,Resizable=0,Width=300,Height=300");
}
</script>
</head>

<body>

Вариант ?1:

<form target="new">
<select onchange="location.href = this.options[this.selectedIndex].value;">
<option value="#"> текст текущей ссылки </option>
<option value="" selected="selected"> текст ссылки 1</option>
</select>
</form>

Вариант ?2:

<form ONCLICK="NewWindow()">
<select onchange="location.href = this.options[this.selectedIndex].value;">
<option value="#"> текст текущей ссылки </option>
<option value="/mypage1.html" selected="selected"> текст ссылки 1</option>
</select>
</form>

Я просто не проверял, потому и не знаю будет ли работать это:)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy