English 中文(简体)
如何在点击第一个纽顿之后展示第二顿?
原标题:How to display second button after the click on first button?

在被点击后如何显示第二顿?

I mean, when The user clicks on one button, he should see another button, on click of which he should return to his previous button!! Cyclic event kind of... I wanted to do this using Java script and HTML.

我试图利用浮标,但打着工作! 帮助!

这是我所用的。

    `<body>

 function alert()
{
  alert("54");
    // <input type="button" id="btnSer" value="Back"/>
}

  <input type="button" id="btnSearch" value="Search" onClick="alert();">


</body>`
问题回答

与此类似?

<button id="button1" style="display:block;" onclick="document.getElementById( button2 ).style.display =  block ; this.style.display =  none ;">Button 1</button>
<button id="button2" style="display:none;" onclick="document.getElementById( button1 ).style.display =  block ; this.style.display =  none ;">Button 2</button>

这里使用的是简单易懂的“javascript”(*note that naming their functionert()) 固定智能,因为在称为警戒的 j中已经具有预先界定的职能。

Javascript 《刑法》

function addBtn(){
  document.getElementById( btnHolder ).innerHTML =  <input type="button" onClick="javascript:removeBtn();" value="click" /> ;
}

function removeBtn(){
  document.getElementById( btnHolder ).innerHTML =   ;
}

<><><><>>><>>>>><>>>>>>

<div id="btnOne"><input type="button" onClick="javascript:addBtn();" value="click" /></div>
<div id="btnHolder"></div>

这部法典虽未经过测试,但应当发挥作用,请允许我知道,是否有其他问题。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!