i am opening the popup window with below code snippet
self.open('myJSPPage','ServicePopUp','height=600,width=800,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes');
Once the window opens i do not see any back button or forward button on popup. I just see title then address bar under it and then myJSPPage under address bar. I am not getting how to show back and forward button on popup?
Edit:- i am using google crome. Looks like above code working on IE
i am opening the popup window with below code snippet
self.open('myJSPPage','ServicePopUp','height=600,width=800,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes');
Once the window opens i do not see any back button or forward button on popup. I just see title then address bar under it and then myJSPPage under address bar. I am not getting how to show back and forward button on popup?
Edit:- i am using google crome. Looks like above code working on IE
Share Improve this question edited Jun 12, 2012 at 4:42 M Sach asked Jun 12, 2012 at 4:22 M SachM Sach 34.4k78 gold badges230 silver badges317 bronze badges 2- Can you provide a little more information? That code works well enough for me. What browser are you using? – Dan Crews Commented Jun 12, 2012 at 4:36
-
2
For an awe inspiring use of
window.open
, view this HTML5 Chrome only DEMO. This doesn't address you question, but shows the power ofwindow.open
! – arttronics Commented Jun 12, 2012 at 4:53
1 Answer
Reset to default 2i tested this example and it gives me forward and back button on FF try this
<!-- Codes by Quackit. -->
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup('http://www.quackit./html/html_help.cfm');">Open a popup window</a>
jsfiddle live demo for your code an mine it gave me buttons on FF test
update: yes you are right chrome does not give the result expected
possible duplicate
another asked question in stack over flow Unfortunately Chrome only supports a small set of window features when using window.open. If you believe that this is a bug or an issue you can file it at http://crbug..
If you just use window.open(url) then it will open a new tab in the same window with the buttons you desire.
jsfiddle demo