<span class="input-group-btn">
<button class="btn btn-sm btn-info no-radius" type="submit" onClick="saveMessage('new')" id="query_btn_margin">
<i class="ace-icon fa fa-share"></i>
Add Comment
</button>
</span> 在对话字段中,在添加评论后,页面重定向到下一个page..how,它将固定在同一页面上。??
发布于 2014-12-05 15:08:00
You can write this code after completing your task,write this line.
window.location.href = "newjsp.jsp"发布于 2014-12-05 14:27:01
您已经在函数末尾调用了此onclick="saveMessage('new')"函数add,
window.location = '/'或者你可以用这个,
window.location = window.location.host;
window.location = window.location.href;更重要的是,您可以在页面中使用jquery,
$(window).attr("location","http://google.com");发布于 2014-12-05 14:34:17
您想要在添加评论后转到下一页(下一页内容在同一页上,显示:无)...
<input type='button' name='add_comment' id='add_comment' value='ADD COMMENT'/>当用户点击上面的按钮时,调用下面的js代码
$('#add_comment').click(function(){
$('.currentpage_div_id_to_hide').hide();
$('.nextpage_div_id_to_show').show();
});https://stackoverflow.com/questions/27310018
复制相似问题