как разместить кнопку
как разместить КНОПКУ, при нажатии которой откроется окно со всеми характеристиками,которое у меня открывается автоматически? вот скрипт:
<html> <head> <title> 5 </title> <SCRIPT LANGUAGE="JavaScript"> /* Скрипт предназначен для того, чтобы получить от пользователя информацию и поместить ее на страницу */ var user_name = prompt ("Напишите свое имя","Здесь"); var user_family = prompt ("Напишите свою фамилию","Здесь"); document.write("Привет, " +user_name+ " "+user_family+". Добро пожаловать!"); function openindex() { var OpenWindow=window.open("", "newwin", "height=250,width=300,status=yes"); self.name="main window" OpenWindow.document.write("<HTML>") OpenWindow.document.write("<TITLE>Новое окно1</TITLE>") OpenWindow.document.write("<BODY BGCOLOR='pink'>") OpenWindow.document.write("<CENTER>") OpenWindow.document.write("<font size=+1>Новое окно</font><P>") OpenWindow.document.write("<a href= 'http://yandex.ru' target='main window'> Эта ссылка<BR>откроется в главном окне</a><p>") OpenWindow.document.write("<a href= 'http://www.google.ru' > Эта ссылка<BR>откроется в этом же окне</a><p>") OpenWindow.document.write("<P><HR><P>") OpenWindow.document.write("<a href='' onClick='self.close()'> Эта закроет окно</a><p>") OpenWindow.document.write("</CENTER>") OpenWindow.document.write("</BODY>") OpenWindow.document.write("</HTML>") } </SCRIPT> </head> <body onLoad="openindex()"> <body bgcolor="white" onLoad="openindex()"> </body> </html> |
Ксения7595,
click-событие к input кнопке |
Часовой пояс GMT +3, время: 19:32. |