By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

Open window in current window??

P: 57
I have a form which I would like to open in a window with no address bar, tool bar etc etc. I've used the below code for this:
Expand|Select|Wrap|Line Numbers
  1. function delayer(){
  3.     newurl = "testpage.html"
  5. }
Which works fine, but I thought it would be better if the page directing could close down. Obviously the Browser security 'Blah blah... trying to close a page' pops up, which I dont like.

So what I would like to know is, is there a way of getting it to open the link into the current window - in the same format - i.e removing toolbars etc. I'm guessing there is a window.[somthing] to tell it to launch in current window. But will that remove address bar etc.

Reasons are the 'testpage.html' is a rather large and complex javascript form, I dont want the user (even though they are internal) to be able to use back/forward or copy the url - I would like it to appear as a framless form.
Jan 11 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
This is not possible with JavaScript. You can only control the opened window and that too whilst opening. If it were possible, you could hijack someone's browser removing their beloved address bar/toolbar!
Jan 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.