JavaScript Tutorial/HTML Tags/removeAttribute

Материал из Web эксперт
Версия от 11:24, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Remove attribute by calling the removeAttribute() function

   <source lang="javascript">

<html> <head> <script language="JavaScript" type = "text/javascript">

</script> </head> <body> <form> <a id="oldurl" href="http://www.wbex.ru">www.wbex.ru</a>

<input type="radio" value="V1" name="R1" onClick="NewWindow(1)">Open in New Window

<input type="radio" name="R1" checked value="V2" onClick="NewWindow(2)">Open in Same Window

  <input type="text" id="urltext" size="20"> 
  <input type="button" value="Change Link" name="B3" onClick="ChangeLink()"></p>

</form> </body> </html></source>