javascript - Opening a page from DOM in current tab -
on button click php function called use file_get_html() simple html dom parser edit form in html file. want replace current page edited dom . tried using javascript, document.write , window.open in various ways eitherappends new page current page or nothing happens.
you can use javascript
document.body.innerhtml = 'your html';
if want change content of page, or
location.href = 'some.url';
if want open new url in same page
Comments
Post a Comment