Problem - Open new
page in the same browser window, while hiding browser toolbar
Solution - I would say it is half-possible to do this. To understand better, let us split it into two different problems.
PS: To understand the window.open() method much better, refer this.
Please comment if this served your purpose by any chance. Happy coding :)
Solution - I would say it is half-possible to do this. To understand better, let us split it into two different problems.
- Problem 1 - To open the new page in the same browser window.
Solution - One of the solutions is to set the second parameter in window.open method to '_self'. This parameter denotes the target window, and by default, it should be '_blank'. Here is a sample call to window.open method that will open a new page in the same browser window.
- Problem 2 - To hide the browser toolbar (while staying on the same page)
I would say, it is better to leave the browser behaviour in this case to browser, rather than confuse it much.
If the requirement is not to stay ont he same page, here is how to do it on a fresh page.
PS: To understand the window.open() method much better, refer this.
Please comment if this served your purpose by any chance. Happy coding :)
No comments:
Post a Comment
Please help to make the post more helpful with your comments.